Skip to content

Commit ec00489

Browse files
authored
Adw/ViewSwitcher: Fix crash with icon size (#1319)
* Adw/ViewSwitcher: Fix crash with icon size * Always put border-spacing
1 parent be3742f commit ec00489

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/gtk-4.0/widgets/adw/PreferencesWindow.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ window.preferences.csd {
33

44
headerbar {
55
@extend .flat;
6-
7-
viewswitcher button.toggle {
8-
border-radius: rem(3px);
9-
10-
box.horizontal {
11-
border-spacing: 0.5em;
12-
}
13-
}
146
}
157

168
preferencespage > scrolledwindow {

src/gtk-4.0/widgets/adw/ViewSwitcher.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
viewswitcher button {
22
stack > box {
3+
border-spacing: 0.5em;
4+
35
label.active {
46
font-weight: bold;
57
}
@@ -24,11 +26,6 @@ viewswitcher button {
2426

2527
headerbar viewswitcher button {
2628
border-radius: rem(3px);
27-
28-
image {
29-
opacity: 0;
30-
-gtk-icon-size: 0;
31-
}
3229
}
3330

3431
viewswitcherbar {

0 commit comments

Comments
 (0)