Removed 1px margin for general buttons, allowing xfce panel to take advantage of the rule of infinite edges and magic corners in Fitt's Law

This commit is contained in:
eudaimon 2023-11-17 12:03:04 +01:00
parent 5cf1d5fe6e
commit 9f0c9afb05
42 changed files with 443 additions and 399 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@
&:active, &.keyboard-activating {
@include _shadows($button_shadow_pressed);
}
&:checked, &:selected, &.has-open-popup { //selected and has-open-popup is for .activatable rows, hopefully it won't go wrong
&:checked, &:selected, &.has-open-popup, %button-pressed { //selected and has-open-popup is for .activatable rows, hopefully it won't go wrong
background-color: $c_pressed;
color: $tc_pressed;
@include _shadows($button_shadow_pressed, 0 10px 3px -9px gtkalpha(currentColor, 0.3)); //, 0 -3px 2px -2px gtkalpha(currentColor, 0.2) //a highlight on the upper border, maybe not for now, because it's harder to make it look realistic...
@ -38,6 +38,7 @@
@include _shadows($button_shadow_pressed, 0 10px 3px -9px gtkalpha(currentColor, 0.5));
}
}
}
&:disabled {
&, &:checked, &:selected, &.has-open-popup {

View File

@ -0,0 +1,16 @@
// XFCE system tray buttons don't look good without margin
.xfce4-panel #sn-button {
margin: 1px;
}
#docklike-plugin {
button {
background-color: transparent;
.active_group & {
@extend %button-pressed;
background-color: red;
}
}
}

View File

@ -585,7 +585,7 @@ button {
border: $button_border;
border-radius: $button_radius;
transition: $button_transition;
margin: 1px;
margin: 0px; //1px;
@include button();
@ -3265,3 +3265,5 @@ popover.emoji-completion .emoji:hover {
@import '../common/undershoot.scss';
@import '../common/stack_switcher.scss';
@import '../common/desktop_environment_fixes.scss'

File diff suppressed because one or more lines are too long

View File

@ -491,7 +491,7 @@ button {
border: $button_border;
border-radius: $button_radius;
transition: $button_transition;
margin: 1px;
margin: 0px; //1px;
@include button();
@ -3285,3 +3285,4 @@ menubutton {
@import '../common/undershoot.scss';
@import '../common/stack_switcher.scss';
@import '../common/desktop_environment_fixes.scss'

File diff suppressed because one or more lines are too long

0
xfwm4/bottom-active.xpm Normal file → Executable file
View File

0
xfwm4/bottom-inactive.xpm Normal file → Executable file
View File

0
xfwm4/bottom-left-active.xpm Normal file → Executable file
View File

0
xfwm4/bottom-left-inactive.xpm Normal file → Executable file
View File

0
xfwm4/bottom-right-active.xpm Normal file → Executable file
View File

0
xfwm4/bottom-right-inactive.xpm Normal file → Executable file
View File

0
xfwm4/close-inactive.xpm Normal file → Executable file
View File

0
xfwm4/hide-active.xpm Normal file → Executable file
View File

0
xfwm4/hide-inactive.xpm Normal file → Executable file
View File

0
xfwm4/left-active.xpm Normal file → Executable file
View File

0
xfwm4/left-inactive.xpm Normal file → Executable file
View File

0
xfwm4/maximize-active.xpm Normal file → Executable file
View File

0
xfwm4/maximize-inactive.xpm Normal file → Executable file
View File

0
xfwm4/maximize-toggled-active.xpm Normal file → Executable file
View File

0
xfwm4/maximize-toggled-inactive.xpm Normal file → Executable file
View File

0
xfwm4/menu-active.xpm Normal file → Executable file
View File

0
xfwm4/menu-inactive.xpm Normal file → Executable file
View File

0
xfwm4/right-active.xpm Normal file → Executable file
View File

0
xfwm4/right-inactive.xpm Normal file → Executable file
View File

0
xfwm4/shade-active.xpm Normal file → Executable file
View File

0
xfwm4/shade-inactive.xpm Normal file → Executable file
View File

0
xfwm4/shade-toggled-active.xpm Normal file → Executable file
View File

0
xfwm4/shade-toggled-inactive.xpm Normal file → Executable file
View File

0
xfwm4/stick-active.xpm Normal file → Executable file
View File

0
xfwm4/stick-inactive.xpm Normal file → Executable file
View File

0
xfwm4/stick-toggled-active.xpm Normal file → Executable file
View File

0
xfwm4/stick-toggled-inactive.xpm Normal file → Executable file
View File

0
xfwm4/themerc Normal file → Executable file
View File

0
xfwm4/title-1-active.xpm Normal file → Executable file
View File

0
xfwm4/title-1-inactive.xpm Normal file → Executable file
View File

0
xfwm4/top-left-active.xpm Normal file → Executable file
View File

0
xfwm4/top-left-inactive.xpm Normal file → Executable file
View File

0
xfwm4/top-right-active.xpm Normal file → Executable file
View File

0
xfwm4/top-right-inactive.xpm Normal file → Executable file
View File