Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
|
|
|
* SPDX-FileCopyrightText: 2024 suyu Emulator Project
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
QWidget:item:hover {
|
|
|
|
background-color: #28668d;
|
|
|
|
color: #eff0f1;
|
|
|
|
}
|
|
|
|
|
2020-09-13 15:25:22 +02:00
|
|
|
QAbstractSpinBox {
|
|
|
|
min-height: 19px;
|
|
|
|
}
|
|
|
|
|
2020-01-28 23:59:30 +01:00
|
|
|
QPushButton#TogglableStatusBarButton {
|
|
|
|
color: #959595;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0px 3px 0px 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#TogglableStatusBarButton:checked {
|
2024-02-04 04:05:50 +01:00
|
|
|
color: palette(text);
|
2020-01-28 23:59:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#TogglableStatusBarButton:hover {
|
|
|
|
border: 1px solid #76797C;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#RendererStatusBarButton {
|
|
|
|
color: #656565;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0px 3px 0px 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#RendererStatusBarButton:hover {
|
|
|
|
border: 1px solid #76797C;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#RendererStatusBarButton:checked {
|
|
|
|
color: #e85c00;
|
|
|
|
}
|
|
|
|
|
2020-07-22 16:39:53 +02:00
|
|
|
QPushButton#RendererStatusBarButton:!checked {
|
2020-01-28 23:59:30 +01:00
|
|
|
color: #0066ff;
|
|
|
|
}
|
2020-07-22 16:39:53 +02:00
|
|
|
|
2024-02-04 04:05:50 +01:00
|
|
|
QPushButton#RendererStatusBarButton:!checked[dark=true] {
|
|
|
|
color: #00ccdd;
|
|
|
|
}
|
|
|
|
|
2021-07-08 23:21:08 +02:00
|
|
|
QPushButton#GPUStatusBarButton {
|
|
|
|
color: #656565;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0px 3px 0px 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#GPUStatusBarButton:hover {
|
|
|
|
border: 1px solid #76797C;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#GPUStatusBarButton:checked {
|
2021-08-04 18:41:58 +02:00
|
|
|
color: #b06020;
|
2021-07-08 23:21:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-04 04:05:50 +01:00
|
|
|
QPushButton#GPUStatusBarButton:checked[dark=true] {
|
|
|
|
color: #ff8040;
|
|
|
|
}
|
|
|
|
|
2021-07-08 23:21:08 +02:00
|
|
|
QPushButton#GPUStatusBarButton:!checked {
|
2021-08-04 18:41:58 +02:00
|
|
|
color: #109010;
|
2021-07-08 23:21:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-04 04:05:50 +01:00
|
|
|
QPushButton#GPUStatusBarButton:!checked[dark=true] {
|
|
|
|
color: #40dd40;
|
|
|
|
}
|
|
|
|
|
2022-06-01 09:59:58 +02:00
|
|
|
QPushButton#DockingStatusBarButton {
|
|
|
|
min-width: 0px;
|
2024-02-04 04:05:50 +01:00
|
|
|
color: palette(text);
|
2022-06-01 09:59:58 +02:00
|
|
|
border: 1px solid transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0px 3px 0px 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton#DockingStatusBarButton:hover {
|
|
|
|
border: 1px solid #76797C;
|
|
|
|
}
|
|
|
|
|
2020-07-22 16:39:53 +02:00
|
|
|
QPushButton#buttonRefreshDevices {
|
2020-09-13 15:25:22 +02:00
|
|
|
min-width: 21px;
|
|
|
|
min-height: 21px;
|
|
|
|
max-width: 21px;
|
|
|
|
max-height: 21px;
|
2020-07-22 16:39:53 +02:00
|
|
|
}
|
|
|
|
|
2023-08-25 19:45:42 +02:00
|
|
|
QPushButton#button_reset_defaults {
|
|
|
|
min-width: 57px;
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
2020-08-21 13:39:24 +02:00
|
|
|
QWidget#bottomPerGameInput,
|
|
|
|
QWidget#topControllerApplet,
|
|
|
|
QWidget#bottomControllerApplet,
|
|
|
|
QGroupBox#groupPlayer1Connected:checked,
|
|
|
|
QGroupBox#groupPlayer2Connected:checked,
|
|
|
|
QGroupBox#groupPlayer3Connected:checked,
|
|
|
|
QGroupBox#groupPlayer4Connected:checked,
|
|
|
|
QGroupBox#groupPlayer5Connected:checked,
|
|
|
|
QGroupBox#groupPlayer6Connected:checked,
|
|
|
|
QGroupBox#groupPlayer7Connected:checked,
|
|
|
|
QGroupBox#groupPlayer8Connected:checked {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
background-color: palette(window);
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#topControllerApplet {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
border-bottom: 1px solid palette(dark)
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#bottomPerGameInput,
|
|
|
|
QWidget#bottomControllerApplet {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
border-top: 1px solid palette(dark)
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#topPerGameInput,
|
|
|
|
QWidget#middleControllerApplet {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
background-color: palette(base)
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#topPerGameInput QComboBox,
|
|
|
|
QWidget#middleControllerApplet QComboBox {
|
2020-09-13 15:25:22 +02:00
|
|
|
width: 120px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#connectedControllers {
|
2020-08-31 06:27:19 +02:00
|
|
|
background: transparent;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#playersSupported,
|
|
|
|
QWidget#controllersSupported,
|
|
|
|
QWidget#controllerSupported1,
|
|
|
|
QWidget#controllerSupported2,
|
|
|
|
QWidget#controllerSupported3,
|
|
|
|
QWidget#controllerSupported4,
|
|
|
|
QWidget#controllerSupported5,
|
|
|
|
QWidget#controllerSupported6 {
|
2020-08-31 06:27:19 +02:00
|
|
|
border: none;
|
|
|
|
background: transparent;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QGroupBox#groupPlayer1Connected,
|
|
|
|
QGroupBox#groupPlayer2Connected,
|
|
|
|
QGroupBox#groupPlayer3Connected,
|
|
|
|
QGroupBox#groupPlayer4Connected,
|
|
|
|
QGroupBox#groupPlayer5Connected,
|
|
|
|
QGroupBox#groupPlayer6Connected,
|
|
|
|
QGroupBox#groupPlayer7Connected,
|
|
|
|
QGroupBox#groupPlayer8Connected {
|
2020-08-31 06:27:19 +02:00
|
|
|
border: 1px solid #828790;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 0px;
|
|
|
|
min-height: 98px;
|
|
|
|
max-height: 98px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QGroupBox#groupPlayer1Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer2Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer3Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer4Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer5Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer6Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer7Connected:unchecked,
|
|
|
|
QGroupBox#groupPlayer8Connected:unchecked {
|
2020-08-31 06:27:19 +02:00
|
|
|
border: 1px solid #d9d9d9;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QGroupBox#groupPlayer1Connected::title,
|
|
|
|
QGroupBox#groupPlayer2Connected::title,
|
|
|
|
QGroupBox#groupPlayer3Connected::title,
|
|
|
|
QGroupBox#groupPlayer4Connected::title,
|
|
|
|
QGroupBox#groupPlayer5Connected::title,
|
|
|
|
QGroupBox#groupPlayer6Connected::title,
|
|
|
|
QGroupBox#groupPlayer7Connected::title,
|
|
|
|
QGroupBox#groupPlayer8Connected::title {
|
2020-08-31 06:27:19 +02:00
|
|
|
subcontrol-origin: margin;
|
|
|
|
subcontrol-position: top left;
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
|
|
|
padding-top: 1px;
|
|
|
|
margin-left: 0px;
|
|
|
|
margin-right: -4px;
|
|
|
|
margin-bottom: 4px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
2020-07-22 16:39:53 +02:00
|
|
|
QCheckBox#checkboxPlayer1Connected,
|
|
|
|
QCheckBox#checkboxPlayer2Connected,
|
|
|
|
QCheckBox#checkboxPlayer3Connected,
|
|
|
|
QCheckBox#checkboxPlayer4Connected,
|
|
|
|
QCheckBox#checkboxPlayer5Connected,
|
|
|
|
QCheckBox#checkboxPlayer6Connected,
|
|
|
|
QCheckBox#checkboxPlayer7Connected,
|
|
|
|
QCheckBox#checkboxPlayer8Connected {
|
2020-08-31 06:27:19 +02:00
|
|
|
spacing: 0px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#Player1LEDs QCheckBox,
|
|
|
|
QWidget#Player2LEDs QCheckBox,
|
|
|
|
QWidget#Player3LEDs QCheckBox,
|
|
|
|
QWidget#Player4LEDs QCheckBox,
|
|
|
|
QWidget#Player5LEDs QCheckBox,
|
|
|
|
QWidget#Player6LEDs QCheckBox,
|
|
|
|
QWidget#Player7LEDs QCheckBox,
|
|
|
|
QWidget#Player8LEDs QCheckBox {
|
2020-08-31 06:27:19 +02:00
|
|
|
spacing: 0px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#Player1LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player2LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player3LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player4LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player5LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player6LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player7LEDs QCheckBox::indicator,
|
|
|
|
QWidget#Player8LEDs QCheckBox::indicator {
|
2020-08-31 06:27:19 +02:00
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
margin-left: 0px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer1Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer2Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer3Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer4Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer5Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer6Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer7Connected::indicator,
|
|
|
|
QWidget#bottomPerGameInput QCheckBox#checkboxPlayer8Connected::indicator {
|
2020-08-31 06:27:19 +02:00
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
2020-07-22 16:39:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QCheckBox#checkboxPlayer1Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer2Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer3Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer4Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer5Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer6Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer7Connected::indicator,
|
|
|
|
QCheckBox#checkboxPlayer8Connected::indicator {
|
2020-08-31 06:27:19 +02:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2020-07-22 16:39:53 +02:00
|
|
|
}
|
|
|
|
|
2020-08-21 13:39:24 +02:00
|
|
|
QGroupBox#groupPlayer1Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer2Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer3Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer4Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer5Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer6Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer7Connected::indicator,
|
|
|
|
QGroupBox#groupPlayer8Connected::indicator {
|
2020-08-31 06:27:19 +02:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#Player1LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player2LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player3LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player4LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player5LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player6LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player7LEDs QCheckBox::indicator:checked,
|
|
|
|
QWidget#Player8LEDs QCheckBox::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer1Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer2Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer3Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer4Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer5Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer6Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer7Connected::indicator:checked,
|
|
|
|
QGroupBox#groupPlayer8Connected::indicator:checked,
|
2020-07-22 16:39:53 +02:00
|
|
|
QCheckBox#checkboxPlayer1Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer2Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer3Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer4Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer5Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer6Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer7Connected::indicator:checked,
|
|
|
|
QCheckBox#checkboxPlayer8Connected::indicator:checked,
|
|
|
|
QGroupBox#groupConnectedController::indicator:checked {
|
2020-08-31 06:27:19 +02:00
|
|
|
border-radius: 2px;
|
|
|
|
border: 1px solid #929192;
|
|
|
|
background: #39ff14;
|
|
|
|
image: none;
|
2020-07-22 16:39:53 +02:00
|
|
|
}
|
|
|
|
|
2020-08-21 13:39:24 +02:00
|
|
|
QWidget#Player1LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player2LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player3LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player4LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player5LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player6LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player7LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QWidget#Player8LEDs QCheckBox::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer1Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer2Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer3Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer4Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer5Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer6Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer7Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupPlayer8Connected::indicator:unchecked,
|
2020-07-22 16:39:53 +02:00
|
|
|
QCheckBox#checkboxPlayer1Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer2Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer3Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer4Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer5Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer6Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer7Connected::indicator:unchecked,
|
|
|
|
QCheckBox#checkboxPlayer8Connected::indicator:unchecked,
|
|
|
|
QGroupBox#groupConnectedController::indicator:unchecked {
|
2020-08-31 06:27:19 +02:00
|
|
|
border-radius: 2px;
|
|
|
|
border: 1px solid #929192;
|
|
|
|
background: transparent;
|
|
|
|
image: none;
|
2020-08-21 13:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#controllerPlayer1,
|
|
|
|
QWidget#controllerPlayer2,
|
|
|
|
QWidget#controllerPlayer3,
|
|
|
|
QWidget#controllerPlayer4,
|
|
|
|
QWidget#controllerPlayer5,
|
|
|
|
QWidget#controllerPlayer6,
|
|
|
|
QWidget#controllerPlayer7,
|
|
|
|
QWidget#controllerPlayer8 {
|
2020-08-31 06:27:19 +02:00
|
|
|
background: transparent;
|
2020-07-22 16:39:53 +02:00
|
|
|
}
|
2021-03-20 12:53:00 +01:00
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog,
|
|
|
|
QStackedWidget#topOSK {
|
|
|
|
background: rgba(51, 51, 51, .9);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QDialog#OverlayDialog,
|
|
|
|
QStackedWidget#stackedDialog {
|
|
|
|
background: rgba(51, 51, 51, .7);
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#boxOSK,
|
|
|
|
QWidget#lineOSK,
|
|
|
|
QWidget#richDialog,
|
|
|
|
QWidget#lineDialog {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStackedWidget#bottomOSK,
|
|
|
|
QWidget#contentDialog,
|
|
|
|
QWidget#contentRichDialog {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
background: palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#contentDialog,
|
|
|
|
QWidget#contentRichDialog {
|
|
|
|
margin: 5px;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#buttonsDialog,
|
|
|
|
QWidget#buttonsRichDialog {
|
|
|
|
margin: 5px;
|
|
|
|
border-top: 2px solid rgba(44, 44, 44, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#legendOSKnum {
|
|
|
|
border-top: 1px solid rgba(44, 44, 44, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::vertical {
|
|
|
|
background: #cdcdcd;
|
|
|
|
width: 15px;
|
|
|
|
margin: 15px 3px 15px 3px;
|
|
|
|
border: 1px transparent;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2024-02-04 04:05:50 +01:00
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::horizontal {
|
2021-03-20 12:53:00 +01:00
|
|
|
background: #cdcdcd;
|
|
|
|
height: 15px;
|
|
|
|
margin: 3px 15px 3px 15px;
|
|
|
|
border: 1px transparent;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::handle {
|
|
|
|
background: #fff;
|
|
|
|
border-radius: 4px;
|
|
|
|
min-height: 5px;
|
|
|
|
min-width: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::add-line,
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::sub-line,
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::add-page,
|
|
|
|
QStackedWidget#stackedDialog QTextBrowser QScrollBar::sub-page {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#inputOSK {
|
|
|
|
border-bottom: 3px solid rgba(255, 255, 255, .9);
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#inputOSK QLineEdit {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
color: #ccc;
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
padding: 0px;
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#inputBoxOSK {
|
|
|
|
border: 2px solid rgba(255, 255, 255, .9);
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#inputBoxOSK QTextEdit {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#richDialog QTextBrowser {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
padding: 35px 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QWidget#lineOSK QLabel#label_header {
|
|
|
|
color: #f0f0f0;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#lineOSK QLabel#label_sub,
|
|
|
|
QWidget#lineOSK QLabel#label_characters,
|
|
|
|
QWidget#boxOSK QLabel#label_characters_box {
|
|
|
|
color: #ccc;
|
|
|
|
}
|
|
|
|
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
QWidget#buttonsDialog,
|
|
|
|
QWidget#buttonsRichDialog,
|
|
|
|
QWidget#mainOSK,
|
|
|
|
QWidget#headerOSK,
|
|
|
|
QWidget#normalOSK,
|
|
|
|
QWidget#shiftOSK,
|
|
|
|
QWidget#numOSK,
|
|
|
|
QWidget#subOSK,
|
|
|
|
QWidget#inputOSK,
|
|
|
|
QWidget#inputBoxOSK,
|
|
|
|
QWidget#charactersOSK,
|
|
|
|
QWidget#charactersBoxOSK,
|
|
|
|
QWidget#legendOSK,
|
|
|
|
QWidget#legendOSK QWidget,
|
|
|
|
QWidget#legendOSKshift,
|
|
|
|
QWidget#legendOSKshift QWidget,
|
|
|
|
QWidget#legendOSKnum,
|
|
|
|
QWidget#legendOSKnum QWidget {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2021-03-20 12:53:00 +01:00
|
|
|
QWidget#contentDialog QLabel#label_title,
|
|
|
|
QWidget#contentRichDialog QLabel#label_title_rich {
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#contentDialog QLabel#label_dialog {
|
|
|
|
padding: 20px 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget#contentDialog QLabel#label_title,
|
|
|
|
QWidget#contentRichDialog QLabel#label_title_rich {
|
|
|
|
padding: 0px 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#OverlayDialog QPushButton {
|
|
|
|
color: rgba(49, 79, 239, 1);
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
padding: 0px;
|
|
|
|
min-width: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#OverlayDialog QPushButton:focus,
|
|
|
|
QDialog#OverlayDialog QPushButton:hover {
|
|
|
|
color: rgba(49, 79, 239, 1);
|
|
|
|
background: rgba(255, 255, 255, 1);
|
|
|
|
border: 5px solid rgba(148, 250, 202, 1);
|
|
|
|
border-radius: 6px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#OverlayDialog QPushButton:pressed {
|
|
|
|
color: rgba(240, 240, 240, 1);
|
|
|
|
background: rgba(150, 150, 150, 1);
|
|
|
|
border: 5px solid rgba(148, 250, 202, 1);
|
|
|
|
border-radius: 6px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
background: palette(window);
|
|
|
|
border: 2px solid palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
background: palette(alternate-base);
|
|
|
|
border: 2px solid palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
color: palette(base);
|
|
|
|
background: palette(mid);
|
|
|
|
border: 2px solid palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
color: palette(base);
|
|
|
|
background: palette(highlight);
|
|
|
|
border: 2px solid palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton:focus,
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton:hover
|
|
|
|
{
|
|
|
|
background: palette(base);
|
|
|
|
border: 5px solid rgba(148, 250, 202, 1);
|
|
|
|
border-radius: 6px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-03-20 12:53:00 +01:00
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:focus,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:hover,
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:hover,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:hover
|
|
|
|
{
|
2021-03-20 12:53:00 +01:00
|
|
|
border: 5px solid rgba(148, 250, 202, 1);
|
|
|
|
border-radius: 6px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:pressed,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:pressed {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
color: palette(base);
|
2021-03-20 12:53:00 +01:00
|
|
|
background: rgba(150, 150, 150, 1);
|
|
|
|
border: 5px solid rgba(148, 250, 202, 1);
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_left_bracket,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_right_bracket,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_left_parenthesis,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_right_parenthesis {
|
|
|
|
padding-bottom: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QWidget#titleOSK QLabel {
|
|
|
|
background: transparent;
|
|
|
|
color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:disabled {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
color: palette(midlight);
|
|
|
|
background-color: palette(alternate-base);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_at:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_slash:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_percent:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_1:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_2:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_3:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_4:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_5:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_6:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_7:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_8:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_9:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_0:disabled,
|
|
|
|
QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:disabled {
|
Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
- Linux:
- Listen for OS color schemes changes on D-Bus
- Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
- Windows (dark mode detection was not implemented before):
- Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
- This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
- Linux uses custom palette when dark mode is detected.
By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
- Allow themes to have stylesheet variants, dark.qss and light.qss
- If current mode is dark, use dark icons for controller and keyboard applets
- Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
- Enable all themes to have dark icon alternatives, not just "default" and "colorful"
- If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
- If current mode is dark, use dark icons for controller and keyboard applets
- Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
colorful_midnight_blue used elements specific to dark themes
2024-02-04 04:04:47 +01:00
|
|
|
color: palette(midlight);
|
2021-03-20 12:53:00 +01:00
|
|
|
}
|