Skip to content

Commit 12056d3

Browse files
committed
Change count badge position and notification badge color
1 parent cba8dcb commit 12056d3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

data/theme/cinnamon-sass/_colors.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ $destructive_color: #ff7b63;
1818
$warning_color: #f8e45c;
1919
$warning_bg_color: #cd9309;
2020

21+
$notification_bg_color: #ef2591;
22+
2123
$accent_color: #78aeed;
2224
$accent_bg_color: #3584e4;
23-
$accent_bg_color_alternative: #d035e4;
2425

2526
$large_icon_color: transparentize($fg_color, 0.6);
2627
$light_text_color: mix($fg_color, $bg_color, 65%);

data/theme/cinnamon-sass/widgets/_windowlist.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
&-notifications-badge {
8787
border-radius: 9999px;
8888
color: $fg_color;
89-
background-color: $accent_bg_color_alternative;
89+
background-color: $notification_bg_color;
9090
}
9191

9292
&-notifications-badge-label {

files/usr/share/cinnamon/applets/[email protected]/appGroup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ class AppGroup {
419419
// Set windows badge position
420420
childBox.x1 = box.x1;
421421
childBox.x2 = childBox.x1 + this.windowsBadgeLabel.width;
422-
childBox.y1 = box.y1;
423-
childBox.y2 = childBox.y1 + this.windowsBadge.get_preferred_height(childBox.get_width())[1];
422+
childBox.y1 = box.y2 - this.windowsBadge.get_preferred_height(childBox.get_width())[1];
423+
childBox.y2 = box.y2;
424424

425425
this.windowsBadge.allocate(childBox, flags);
426426

0 commit comments

Comments
 (0)