Skip to content

Commit 4fc01b6

Browse files
committed
chore: migrate to GTK 4.20 CSS @media queries
1 parent f1eb27b commit 4fc01b6

3 files changed

Lines changed: 10 additions & 45 deletions

File tree

data/Chronograph.gresource.xml.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<file preprocess="xml-stripblanks">gtk/ui/widgets/wbw/LyricsWidget.ui</file>
1818
<file alias="shortcuts-dialog.ui" preprocess="xml-stripblanks">gtk/ui/shortcuts-dialog.ui</file>
1919
<file alias="style.css">gtk/css/style.css</file>
20-
<file alias="style-dark.css">gtk/css/style-dark.css</file>
2120
</gresource>
2221
<!-- Resources (YAMLs, JSONs, etc.) -->
2322
<gresource prefix="@PREFIX@/resources/">

data/gtk/css/style-dark.css

Lines changed: 0 additions & 44 deletions
This file was deleted.

data/gtk/css/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ flowboxchild:active {
4141
background: none;
4242
box-shadow: none;
4343
outline: none;
44+
}
45+
46+
@media (prefers-color-scheme: dark) {
47+
.rounded-frame {
48+
border-top-right-radius: 12px;
49+
border-top-left-radius: 12px;
50+
border-bottom-right-radius: 12px;
51+
border-bottom-left-radius: 12px;
52+
background-color: #1d1d20;
53+
}
4454
}

0 commit comments

Comments
 (0)