Skip to content

Commit

Permalink
Add proper support for HiDPI CSD (Issue #100)
Browse files Browse the repository at this point in the history
While HiDPI worked before with CSD, the icons were simply upscaled
from 16px to 32px which produced fuzzy results. Adding sharp icons
fixes this.
  • Loading branch information
ochosi committed Mar 25, 2018
1 parent 031f985 commit 93ce4be
Show file tree
Hide file tree
Showing 32 changed files with 633 additions and 25 deletions.
3 changes: 2 additions & 1 deletion gtk-3.0/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4255,7 +4255,8 @@ button.titlebutton {
// Load png assets for each button
@each $k in ('close','maximize', 'minimize') {
@each $l, $m in ('',''), (':backdrop','-backdrop'), (':hover','-hover'), (':active','-active') {
&.#{$k}#{$l} { background-image: url('assets/titlebutton-#{$k}#{$m}#{$asset_suffix}.png'); }
&.#{$k}#{$l} { background-image: -gtk-scaled(url('assets/titlebutton-#{$k}#{$m}#{$asset_suffix}.png'),
url('assets/titlebutton-#{$k}#{$m}#{$asset_suffix}@2.png')); }
}
}

Expand Down
Binary file added gtk-3.0/assets/titlebutton-close-active-dark@2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions gtk-3.0/assets/titlebutton-close-active-dark@2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gtk-3.0/assets/titlebutton-close-active@2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
145 changes: 145 additions & 0 deletions gtk-3.0/assets/titlebutton-close-active@2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions gtk-3.0/assets/titlebutton-close-backdrop-dark@2.png
1 change: 1 addition & 0 deletions gtk-3.0/assets/titlebutton-close-backdrop@2.png
Binary file added gtk-3.0/assets/titlebutton-close-dark@2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 93ce4be

Please sign in to comment.