1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- QWidget {
- background-color: white;
- }
- SwitchButton {
- qproperty-spacing: 12;
- background-color: transparent;
- }
- SwitchButton>QLabel {
- color: black;
- font: 14px 'Segoe UI', 'Microsoft YaHei';
- background-color: transparent;
- border: none;
- }
- Indicator {
- height: 16px;
- width: 37px;
- qproperty-sliderOnColor: white;
- qproperty-sliderOffColor: rgb(96, 96, 96);
- qproperty-sliderDisabledColor: rgb(155, 154, 153);
- border-radius: 10px;
- }
- Indicator:!checked {
- background-color: rgb(247, 247, 247);
- border: 1px solid rgb(139, 139, 139);
- }
- Indicator:!checked:hover {
- border: 1px solid rgb(136, 136, 136);
- background-color: rgb(238, 238, 238);
- qproperty-sliderOffColor: rgb(91, 91, 91);
- }
- Indicator:!checked:pressed {
- border: 1px solid rgb(133, 133, 133);
- background-color: rgb(229, 229, 229);
- qproperty-sliderOffColor: rgb(87, 87, 87);
- }
- Indicator:checked {
- border: 1px solid --ThemeColorPrimary;
- background-color: --ThemeColorPrimary;
- }
- Indicator:checked:hover {
- border: 1px solid --ThemeColorLight1;
- background-color: --ThemeColorLight1;
- }
- Indicator:checked:pressed {
- border: 1px solid --ThemeColorLight2;
- background-color: --ThemeColorLight2;
- }
- Indicator:disabled {
- border: 1px solid rgb(194, 194, 191);
- background-color: rgb(194, 194, 191);
- }
|