forked from KitwareMedical/SlicerVirtualReality
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add VR optimized Qt Style Sheet
This style sheet makes the text in the VR menu widget bigger, and gives the buttons and slider handles different colors for unpressed, hover, and pressed statuses. KitwareMedical#43
- Loading branch information
1 parent
c861d1d
commit 93baf29
Showing
1 changed file
with
35 additions
and
58 deletions.
There are no files selected for viewing
93 changes: 35 additions & 58 deletions
93
VirtualReality/Widgets/Resources/StyleSheets/VrWidgetStyle.qss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,50 @@ | ||
QAbstractButton, | ||
QPushButton { | ||
border-style: solid; | ||
border-width: 1px; | ||
border-radius: 0px; | ||
background-color: #FFFFFF; | ||
border-color: #3a3a3a; | ||
color: #3a3a3a; | ||
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; | ||
font: bold 12pt; | ||
font-weight: 400; | ||
padding: 4px; | ||
QWidget { | ||
font: 20px; | ||
} | ||
|
||
QAbstractButton:pressed, | ||
QPushButton:pressed { | ||
border-style: solid; | ||
border-width: 1px; | ||
border-radius: 0px; | ||
background-color: #D7D7D7; | ||
border-color: #3a3a3a; | ||
QAbstractButton { | ||
color: #3a3a3a; | ||
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; | ||
font: bold 12pt; | ||
font-weight: 400; | ||
border-color: #3a3a3a; | ||
border-style: solid; | ||
border-width: 1px; | ||
border-radius: 10px; | ||
padding: 4px; | ||
} | ||
|
||
QAbstractButton:checked, | ||
QPushButton:checked { | ||
border-style: solid; | ||
border-width: 1px; | ||
border-radius: 0px; | ||
background-color: #D7D7D7; | ||
border-color: #3a3a3a; | ||
color: #3a3a3a; | ||
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; | ||
font: bold 12pt; | ||
font-weight: 400; | ||
padding: 4px; | ||
QAbstractButton:hover { | ||
background-color:#ABABAB; | ||
} | ||
|
||
QSlider::handle:horizontal { | ||
background-color: white; | ||
border: 2px solid black; | ||
width: 10px; | ||
height: 12px; | ||
QAbstractButton:pressed { | ||
background-color: #525252; | ||
} | ||
|
||
QLabel { | ||
font-family: Segoe UI,Frutiger,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif; | ||
font: bold 12pt; | ||
font-weight: 400; | ||
color: #3a3a3a; | ||
margin-left: 4px; margin-right: 4px; | ||
QSlider { | ||
min-height: 68px; | ||
max-height: 68px; | ||
background: white; | ||
} | ||
|
||
QCheckBox, | ||
QCheckBox:pressed, | ||
QCheckBox:checked { | ||
border-style: none; | ||
font: bold 12pt; | ||
font-weight: 400; | ||
background-color: #FFFFFF; | ||
color: #3a3a3a; | ||
QSlider::groove:horizontal { | ||
border: 1px solid #262626; | ||
height: 5px; | ||
background: #399aef; | ||
margin: 0 12px; | ||
} | ||
|
||
ctkSliderWidget { | ||
font: bold 12pt; | ||
font-weight: 400; | ||
background-color: #FFFFFF; | ||
color: #3a3a3a; | ||
QSlider::handle:horizontal { | ||
background: white; | ||
border: 2px solid black; | ||
border-radius: 10px; | ||
width: 23px; | ||
height: 100px; | ||
margin: -24px -12px; | ||
} | ||
|
||
QSlider::handle:horizontal:hover { | ||
background: #ABABAB; | ||
} | ||
|
||
QSlider::handle:horizontal:pressed { | ||
background: #525252; | ||
} |