Skip to content

Commit

Permalink
Apply xfce4-panel tasklist margin intelligently (Fixes #240)
Browse files Browse the repository at this point in the history
This properly works with xfce4-panel >4.13.3 and was fixed here
https://git.xfce.org/xfce/xfce4-panel/commit/?id=e56e8699e271cea209f5b283421952d9035ad2b5
  • Loading branch information
ochosi committed Nov 9, 2018
1 parent a120e77 commit 0904216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gtk-3.0/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ $variant: 'light';
}
}
.tasklist button {
margin: 1px;
border-radius: 3px;
text-shadow: 0 1px $fg_color;
color: shade($panel_fg_color, 0.7);
Expand Down Expand Up @@ -122,6 +121,8 @@ $variant: 'light';
padding: 3px;
}
}
&.horizontal .tasklist button { margin: 0 1px; }
&.vertical .tasklist button { margin: 1px 0; }
}

/* Workspace switcher provided by libwnck */
Expand Down
5 changes: 4 additions & 1 deletion gtk-3.0/gtk-contained.css
Original file line number Diff line number Diff line change
Expand Up @@ -4616,7 +4616,6 @@ read if you used those and something break with a version upgrade you're on your
border-radius: 0px;
border-color: shade(#686868, 0.4); }
.xfce4-panel.background .tasklist button {
margin: 1px;
border-radius: 3px;
text-shadow: 0 1px #3c3c3c;
color: shade(#fcfcfc, 0.7);
Expand All @@ -4636,6 +4635,10 @@ read if you used those and something break with a version upgrade you're on your
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 -1px rgba(0, 0, 0, 0.2); }
.xfce4-panel.background .tasklist button image {
padding: 3px; }
.xfce4-panel.background.horizontal .tasklist button {
margin: 0 1px; }
.xfce4-panel.background.vertical .tasklist button {
margin: 1px 0; }

/* Workspace switcher provided by libwnck */
wnck-pager:selected {
Expand Down

0 comments on commit 0904216

Please sign in to comment.