mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Add number overlay style.
This commit is contained in:
@@ -710,7 +710,7 @@ const taskbarAppIcon = new Lang.Class({
|
||||
x_align: St.Align.START, y_align: St.Align.START,
|
||||
x_expand: true, y_expand: true
|
||||
});
|
||||
this._numberOverlayStyle = 'background-color: rgba(0,0,0,0.8);'
|
||||
this._numberOverlayLabel.add_style_class_name('number-overlay');
|
||||
this._numberOverlayOrder = -1;
|
||||
this._numberOverlayBin.hide();
|
||||
|
||||
@@ -729,9 +729,7 @@ const taskbarAppIcon = new Lang.Class({
|
||||
let font_size = Math.round(Math.max(12, 0.3*natWidth) / scaleFactor);
|
||||
let size = Math.round(font_size*1.2);
|
||||
this._numberOverlayLabel.set_style(
|
||||
this._numberOverlayStyle +
|
||||
'font-size: ' + font_size + 'px;' +
|
||||
'text-align: center;' +
|
||||
'border-radius: ' + this.icon.iconSize + 'px;' +
|
||||
'width: ' + size + 'px; height: ' + size +'px;'
|
||||
);
|
||||
|
||||
@@ -83,4 +83,10 @@
|
||||
|
||||
.showdesktop-button-hovered {
|
||||
background-color: rgba(200, 200, 200, .4);
|
||||
}
|
||||
}
|
||||
|
||||
.number-overlay {
|
||||
background-color: rgba(0,0,0,0.8);
|
||||
color: rgba(256, 256, 256, 1);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user