Skip to content

Commit

Permalink
network-applet: clean up some insensitive styling
Browse files Browse the repository at this point in the history
Reuse some of the same styling we use in the power applet for the currently
selected and :insensitive item
  • Loading branch information
JosephMcc committed Sep 16, 2024
1 parent d78d68e commit 4c15488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/theme/cinnamon-sass/widgets/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ $menuitem_border_radius: $base_border_radius * 1;
@extend %heading;
color: $fg_color;

&:insensitive { color: $fg_color; }

.popup-inactive-menu-item {
font-weight: normal;
color: $fg_color;
Expand All @@ -133,3 +135,5 @@ $menuitem_border_radius: $base_border_radius * 1;

// Used to set the color of the signal strength icons in network applet
.nm-menu-item-icons { spacing: .5em; }

.wireless-active:insensitive { color: red; }
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ NMDevice.prototype = {
}
this._activeConnectionItem = new PopupMenu.PopupMenuItem(title, { reactive: false });
this._activeConnectionItem.setShowDot(true);
this._activeConnectionItem.actor.add_style_class_name('popup-device-menu-item');
},

_deviceStateChanged: function(device, newstate, oldstate, reason) {
Expand Down Expand Up @@ -894,6 +895,7 @@ NMDeviceModem.prototype = {
if (!this.mobileDevice.operator_name)
this._operatorItem.actor.hide();
this.section.addMenuItem(this._operatorItem);
this._operatorItem.actor.add_style_class_name('popup-device-menu-item');
}

NMDevice.prototype._createSection.call(this);
Expand Down Expand Up @@ -1603,6 +1605,7 @@ NMDeviceWireless.prototype = {
{ reactive: false });
}
this._activeConnectionItem.setShowDot(true);
this._activeConnectionItem.actor.add_style_class_name('popup-device-menu-item');
},

_createAutomaticConnection: function(apObj) {
Expand Down

0 comments on commit 4c15488

Please sign in to comment.