Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Non-Blurry Switches and Checks #277

Merged
merged 5 commits into from Apr 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion debian/changelog
@@ -1,9 +1,10 @@
pop-gtk-theme (4.1.4) disco; urgency=medium

* Non-blurry checks and switches on HiDPI
* Set switch color to transparent (#270)

-- Ian Santopietro <isantop@gmail.com> Wed, 13 Feb 2019 10:02:30 -0700

pop-gtk-theme (4.1.3) cosmic; urgency=medium

* Make round buttons take up less space.
Expand Down
73 changes: 47 additions & 26 deletions src/gtk3/common/assets/check-symbols.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/check-symbols@1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/check-symbols@2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/check-symbols@3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 25 additions & 18 deletions src/gtk3/common/assets/indeterminate-symbols.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/indeterminate-symbols@1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/indeterminate-symbols@2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/indeterminate-symbols@3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 21 additions & 12 deletions src/gtk3/common/assets/switch-symbols.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/switch-symbols@1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/switch-symbols@2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gtk3/common/assets/switch-symbols@3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/gtk3/common/scss/gtk-widgets/_check-radio.scss
Expand Up @@ -32,11 +32,17 @@ radio {
}

&:checked {
-gtk-icon-source: url('assets/check-symbols.svg');
-gtk-icon-source: -gtk-scaled(
url('assets/check-symbols@1.png'),
url('assets/check-symbols@2.png'),
url('assets/check-symbols@3.png'));
}

&:indeterminate {
-gtk-icon-source: url('assets/indeterminate-symbols.svg');
-gtk-icon-source: -gtk-scaled(
url('assets/indeterminate-symbols@1.png'),
url('assets/indeterminate-symbols@2.png'),
url('assets/indeterminate-symbols@3.png'));
}

&:disabled, {
Expand Down
5 changes: 4 additions & 1 deletion src/gtk3/common/scss/gtk-widgets/_switch.scss
Expand Up @@ -11,7 +11,10 @@ switch {
border-radius: $circular_radius;
background-clip: padding-box;
background-color: to600($fg_color);
background-image: url('assets/switch-symbols.svg');
background-image: -gtk-scaled(
url('assets/switch-symbols@1.png'),
url('assets/switch-symbols@2.png'),
url('assets/switch-symbols@3.png'));
background-repeat: no-repeat;
background-position: center;
background-size: contain;
Expand Down