Camotics simulator missing control in some stylesheets

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Camotics simulator missing control in some stylesheets

Post by sliptonic »

I'm running the extremeprodark theme.
When I launch the camotics simulation, the drag slider is missing. See below.

No style sheet on right. ExtremeProDark on left.

2022-09-13_17-22.png
2022-09-13_17-22.png (166.44 KiB) Viewed 1059 times

Code: Select all

OS: Linux Mint 20 (i3/i3)
Word size of FreeCAD: 64-bit
Version: 0.21.30364 (Git)
Build type: Unknown
Branch: master
Hash: 05058e9708e2f377b4ede84e5e22d105a219b9ff
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.2
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.3
  * Behave-Dark-Colors 0.1.1
  * 3DfindIT 1.2.0
  * ProDarkThemePreferencePack 1.0.0
  * sheetmetal 0.2.52
  * FeedsAndSpeeds
  * ExtremeProDark 1.0.4
  * FeedsAndSpeeds.bak
  * Dracula 0.0.2
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Camotics simulator missing control in some stylesheets

Post by Syres »

sliptonic wrote: Tue Sep 13, 2022 10:27 pm I'm running the extremeprodark theme.
When I launch the camotics simulation, the drag slider is missing. See below.
This might not be perfect but it should make it useable, replace the QSlider section of ExtremeProDark.qss with:

Code: Select all

/*==================================================================================================
Slider
==================================================================================================*/
QSlider,
QSlider:active,
QSlider:!active {
    border: none;
    background-color: transparent;
}

QSlider:horizontal {
    padding: 0px 10px;
}

QSlider:vertical {
    padding: 10px 0px;
}

QSlider::groove {
    background-color: rgba(0,0,0,30);
    border: 1px solid rgba(0,0,0,40);
    border-radius: 5px;
    margin: 4px 0px;
}

QSlider::groove:horizontal {
    height: 8px;
}

QSlider::groove:vertical {
    width: 8px;
}

QSlider::groove:horizontal:disabled,
QSlider::groove:vertical:disabled {
    border-color:  #363636;
    background-color: #363636;
}

QSlider::handle:horizontal,
QSlider::handle:vertical {
    background-color: #696969;
    border: 1px solid #696969;
    width: 14px;
    height: 14px;
    border-radius: 8px;
}

QSlider::handle:horizontal {
    margin: -4px 0;
}

QSlider::handle:vertical {
    margin: 0 -4px;
}

QSlider::handle:horizontal:hover,
QSlider::handle:vertical:hover,
QSlider::handle:horizontal:pressed,
QSlider::handle:vertical:pressed {
    border-color: #65A2E5;
    background-color: #65A2E5;
}

QSlider::handle:horizontal:disabled,
QSlider::handle:vertical:disabled {
    border-color: #363636;
    background-color: #363636;
}




Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.30360 (Git)
Build type: Release
Branch: master
Hash: f337a0f9d40f498961ceceec1cb2bbc530a51c81
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * ExtremeProDark.backup1663146276.8615105
  * A2plus 0.4.59
  * Curves 0.5.8
  * ExtremeProDark 1.0.4
  * Plot 2022.4.17
  * fasteners 0.4.6
  * sheetmetal 0.2.57
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Camotics simulator missing control in some stylesheets

Post by adrianinsaval »

is that change going to be pushed to master?
User avatar
MisterMaker
Posts: 739
Joined: Mon Sep 21, 2020 7:41 am

Re: Camotics simulator missing control in some stylesheets

Post by MisterMaker »

Thnx for finding this bug!
I merged it.
My first pull request on my own code :D
Post Reply