Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Prevent OS/theme background mismatch

Anderson Prado7dcc14e3b478
diff --git a/stuff/config/qss/Blue/Blue.qss b/stuff/config/qss/Blue/Blue.qss
index cb822cd45..232437b33 100644
--- a/stuff/config/qss/Blue/Blue.qss
+++ b/stuff/config/qss/Blue/Blue.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #dfdfdf;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Clay/Clay.qss b/stuff/config/qss/Clay/Clay.qss
index c7edbcb90..80017ba28 100644
--- a/stuff/config/qss/Clay/Clay.qss
+++ b/stuff/config/qss/Clay/Clay.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #dfdfdf;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Dark/Dark.qss b/stuff/config/qss/Dark/Dark.qss
index dcce9c5b7..2411c3f3f 100644
--- a/stuff/config/qss/Dark/Dark.qss
+++ b/stuff/config/qss/Dark/Dark.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #d3d3d3;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Default-Green/Default-Green.qss b/stuff/config/qss/Default-Green/Default-Green.qss
index 0a55bb3f8..6e89ebb83 100644
--- a/stuff/config/qss/Default-Green/Default-Green.qss
+++ b/stuff/config/qss/Default-Green/Default-Green.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #dfdfdf;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Default/Default.qss b/stuff/config/qss/Default/Default.qss
index 781693eb1..3770862e9 100644
--- a/stuff/config/qss/Default/Default.qss
+++ b/stuff/config/qss/Default/Default.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #dfdfdf;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Default/less/layouts/_misc.less b/stuff/config/qss/Default/less/layouts/_misc.less
index d700d3a2d..0a5606a44 100644
--- a/stuff/config/qss/Default/less/layouts/_misc.less
+++ b/stuff/config/qss/Default/less/layouts/_misc.less
@@ -1,91 +1,99 @@
-/* -----------------------------------------------------------------------------
- Misc
------------------------------------------------------------------------------ */
-
-PencilTestPopup {
- min-height: 730; /* Allow for using a 768 screen */
- min-width: 512; /* Some clipping will still occur on width, but this
- allows for filling half of a 1024 screen */
-}
-
-// #HistoryPanel {}
-
-#MatchLineButton {
- background-color: lighten(@bg-color, 15);
-
- &:checked {
- background-color: lighten(@bg-color, 30);
- border: 2 solid @hl-color;
- border-radius: 2;
- }
-}
-
-#LargeSizedText {
- font-size: 17px;
-}
-
-/* -----------------------------------------------------------------------------
- Stop Motion Controller
------------------------------------------------------------------------------ */
-
-#StopMotionController {
- & QScrollArea {
- margin: 8;
- }
-
- & QPushButton {
- // Add spacing to buttons
- margin: 2 1;
- padding: 0;
- }
-
- & #TabBarContainer {
- margin-left: -4; // might not work
- }
-
- & #bottomWidget {
- border-top: 1 solid @border-color;
- padding: 3 2 8 3;
-
- & QPushButton {
- // Override above margin reset
- padding: 3 5;
- }
- }
-}
-
-// #StopMotionTabBar {}
-
-/* -----------------------------------------------------------------------------
- Unknowns + Legacy
------------------------------------------------------------------------------ */
-
-//! Classes that are unknown and considered redundant, they need investigation
-// before being removed.
-
-// Classes from [v1.1.2]
-
-#StartupLabel {
- padding: 3;
-
- &:hover {
- background: lighten(@bg-color, 10);
- }
-}
-
-QStatusBar {
- background-color: rgb(192,192,192);
-
- &::item {
- border: 0;
- }
-
- & QLabel {
- background-color: rgb(192,192,192);
- }
-
- & #StatusBarLabel {
- background-color: rgb(255,255,255);
- padding: 1 3;
- }
-}
+/* -----------------------------------------------------------------------------
+ Misc
+----------------------------------------------------------------------------- */
+
+PencilTestPopup {
+ min-height: 730; /* Allow for using a 768 screen */
+ min-width: 512; /* Some clipping will still occur on width, but this
+ allows for filling half of a 1024 screen */
+}
+
+// #HistoryPanel {}
+
+#MatchLineButton {
+ background-color: lighten(@bg-color, 15);
+
+ &:checked {
+ background-color: lighten(@bg-color, 30);
+ border: 2 solid @hl-color;
+ border-radius: 2;
+ }
+}
+
+#LargeSizedText {
+ font-size: 17px;
+}
+
+/* -----------------------------------------------------------------------------
+ Stop Motion Controller
+----------------------------------------------------------------------------- */
+
+#StopMotionController {
+ & QScrollArea {
+ margin: 8;
+ }
+
+ & QPushButton {
+ // Add spacing to buttons
+ margin: 2 1;
+ padding: 0;
+ }
+
+ & #TabBarContainer {
+ margin-left: -4; // might not work
+ }
+
+ & #bottomWidget {
+ border-top: 1 solid @border-color;
+ padding: 3 2 8 3;
+
+ & QPushButton {
+ // Override above margin reset
+ padding: 3 5;
+ }
+ }
+}
+
+// #StopMotionTabBar {}
+
+/* -----------------------------------------------------------------------------
+ Unknowns + Legacy
+----------------------------------------------------------------------------- */
+
+//! Classes that are unknown and considered redundant, they need investigation
+// before being removed.
+
+// Classes from [v1.1.2]
+
+#StartupLabel {
+ padding: 3;
+
+ &:hover {
+ background: lighten(@bg-color, 10);
+ }
+}
+
+QStatusBar {
+ background-color: rgb(192,192,192);
+
+ &::item {
+ border: 0;
+ }
+
+ & QLabel {
+ background-color: rgb(192,192,192);
+ }
+
+ & #StatusBarLabel {
+ background-color: rgb(255,255,255);
+ padding: 1 3;
+ }
+}
+
+// Prevent OS/theme background mismatch for consistent text visibility
+// e.g., Canvas Size, Export Level, Convert to Vectors.
+
+DVGui--Separator {
+ alternate-background-color: @text-color;
+}
+
diff --git a/stuff/config/qss/Light/Light.qss b/stuff/config/qss/Light/Light.qss
index 8fb2628b4..ab63562d4 100644
--- a/stuff/config/qss/Light/Light.qss
+++ b/stuff/config/qss/Light/Light.qss
@@ -2982,6 +2982,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: black;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Neutral/Neutral.qss b/stuff/config/qss/Neutral/Neutral.qss
index 39e63c43c..e3693ea5b 100644
--- a/stuff/config/qss/Neutral/Neutral.qss
+++ b/stuff/config/qss/Neutral/Neutral.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: black;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */
diff --git a/stuff/config/qss/Synthwave/Synthwave.qss b/stuff/config/qss/Synthwave/Synthwave.qss
index d81dd2f47..05d73702a 100644
--- a/stuff/config/qss/Synthwave/Synthwave.qss
+++ b/stuff/config/qss/Synthwave/Synthwave.qss
@@ -2981,6 +2981,9 @@ QStatusBar #StatusBarLabel {
background-color: #ffffff;
padding: 1 3;
}
+DVGui--Separator {
+ alternate-background-color: #d3d3d3;
+}
/* -----------------------------------------------------------------------------
XSheet Viewer
----------------------------------------------------------------------------- */