Skip to content

Commit

Permalink
Give auto button a background (#1002)
Browse files Browse the repository at this point in the history
* Give auto button a background

* Fix CI issue

* Fix CI issue
  • Loading branch information
meisenzahl committed May 2, 2021
1 parent e5e6457 commit 6dd22e6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
apt update
apt install -y meson sassc
- name: Build
env:
DESTDIR: out
run: |
meson build
ninja -C build
Expand Down
Binary file added src/assets/color-button-auto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ foreach variant : variants
install_dir: dest_theme_dir,
rename: ['plank' / 'dock.theme', 'plank-dark' / 'dock.theme']
)

install_subdir([
'assets',
], install_dir: dest_theme_dir / 'gtk-3.0' )
endforeach
7 changes: 7 additions & 0 deletions src/widgets/_checkbuttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,11 @@ radiobutton.image-button {
-gtk-icon-shadow: 0 1px 1px #{'@SLATE_500'};

}

&.auto radio {
background-image: url("assets/color-button-auto.png");
background-position: -1px -1px;
background-repeat: no-repeat;
background-size: calc(100% + 2px);
}
}

0 comments on commit 6dd22e6

Please sign in to comment.