Skip to content

Commit 306dd36

Browse files
committed
src: Fix theme parser error due to missing semicolon in flowbox padding.
Fixes the following warning: Theme parser warning: gtk.css:5255:3-5256:1: Expected ';' at end of block We will fix the main file and regenerate the themes later. Signed-off-by: Siddh Raman Pant <[email protected]>
1 parent 4145daa commit 306dd36

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/sass/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ build: clean
1010
# Replace conditional stuff. For example, see the definition
1111
# for "flowboxchild:selected image" in nautilus/Adwaita.css.
1212
# The way this works is we have an existing commented line
13-
# which ends with the embedded comment "/* Make: GTK3 only */"
14-
# for GTK 3 (and 4 for GTK4). Thus, we just need to remove the
15-
# starting "/*" to uncomment the line / code, the comment end
16-
# is already handled due to embedded comment start.
17-
ls gtk3-*.css | xargs sed -i "s|^\(\s*\)\(/\*\)\(.*\)\(/\* Make: GTK3 only \*/\)$|\1\3\4|"
18-
ls gtk4-*.css | xargs sed -i "s|^\(\s*\)\(/\*\)\(.*\)\(/\* Make: GTK4 only \*/\)$|\1\3\4|"
13+
# which ends with the embedded comment "* Make: GTK3 only */"
14+
# for GTK 3 (and 4 for GTK4). Note the missing starting slash,
15+
# that's because we can't have nested comments in CSS for some
16+
# reason. We need to add it ourselves when uncommenting line.
17+
ls gtk3-*.css | xargs sed -i 's|^\(\s*\)\(/\*\)\(.*\)\(\* Make: GTK3 only \*/\)$$|\1\3/\4|'
18+
ls gtk4-*.css | xargs sed -i 's|^\(\s*\)\(/\*\)\(.*\)\(\* Make: GTK4 only \*/\)$$|\1\3/\4|'
1919

2020
for COLOR in $(COLOR_VARIANTS); \
2121
do \

src/sass/gtk-applications-css/nautilus/Adwaita.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ entry.search > * {
225225

226226
/* Icon view */
227227
flowbox {
228-
padding: 18px
228+
padding: 18px;
229229
}
230230

231231
flowboxchild {
@@ -258,6 +258,6 @@ flowboxchild:selected .icon-ui-labels-box {
258258
flowboxchild:selected image {
259259
-gtk-icon-shadow: 0px 0px @theme_selected_bg_color;
260260
/* In the Makefile, we will uncomment the following appropriately. */
261-
/* -gtk-icon-effect: dim; /* Make: GTK3 only */
262-
/* -gtk-icon-filter: opacity(0.5); /* Make: GTK4 only */
261+
/* -gtk-icon-effect: dim; * Make: GTK3 only */
262+
/* -gtk-icon-filter: opacity(0.5); * Make: GTK4 only */
263263
}

0 commit comments

Comments
 (0)