Skip to content

Commit

Permalink
ENH: Add VR optimized Qt Style Sheet
Browse files Browse the repository at this point in the history
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
mohammadrashid0917 authored and cpinter committed May 21, 2019
1 parent c861d1d commit 93baf29
Showing 1 changed file with 35 additions and 58 deletions.
93 changes: 35 additions & 58 deletions VirtualReality/Widgets/Resources/StyleSheets/VrWidgetStyle.qss
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;
}

0 comments on commit 93baf29

Please sign in to comment.