mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Restore panel css class names
This commit is contained in:
6
panel.js
6
panel.js
@@ -261,7 +261,7 @@ var dtpPanel = Utils.defineClass({
|
||||
this._setClockLocation(Me.settings.get_string('location-clock'));
|
||||
this._displayShowDesktopButton(Me.settings.get_boolean('show-showdesktop-button'));
|
||||
|
||||
this.add_style_class_name('dashtopanelPanel ' + getOrientation());
|
||||
this.add_style_class_name('dashtopanelMainPanel ' + getOrientation());
|
||||
|
||||
// Since Gnome 3.8 dragging an app without having opened the overview before cause the attemp to
|
||||
//animate a null target since some variables are not initialized when the viewSelector is created
|
||||
@@ -767,9 +767,9 @@ var dtpPanel = Utils.defineClass({
|
||||
|
||||
// styles for theming
|
||||
Object.keys(St.Side).forEach(p => {
|
||||
let cssName = p.charAt(0) + p.slice(1).toLowerCase();
|
||||
let cssName = 'dashtopanel' + p.charAt(0) + p.slice(1).toLowerCase();
|
||||
|
||||
this[(p == this.geom.position ? 'add' : 'remove') + '_style_class_name'](cssName);
|
||||
this[(St.Side[p] == this.geom.position ? 'add' : 'remove') + '_style_class_name'](cssName);
|
||||
});
|
||||
|
||||
Main.layoutManager._updateHotCorners();
|
||||
|
||||
@@ -67,19 +67,19 @@
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.dashtopanelPanel.vertical .panel-button {
|
||||
.dashtopanelMainPanel.vertical .panel-button {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dashtopanelPanel.vertical .panel-button.vertical *,
|
||||
.dashtopanelPanel.vertical .panel-button.clock-display * {
|
||||
.dashtopanelMainPanel.vertical .panel-button.vertical *,
|
||||
.dashtopanelMainPanel.vertical .panel-button.clock-display * {
|
||||
padding: 1px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dashtopanelPanel.vertical .panel-button > *,
|
||||
.dashtopanelPanel.vertical .panel-button.vertical > *,
|
||||
.dashtopanelPanel.vertical .panel-button.clock-display > * {
|
||||
.dashtopanelMainPanel.vertical .panel-button > *,
|
||||
.dashtopanelMainPanel.vertical .panel-button.vertical > *,
|
||||
.dashtopanelMainPanel.vertical .panel-button.clock-display > * {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user