Restore panel css class names

This commit is contained in:
Charles Gagnon
2019-10-28 09:33:52 -04:00
parent 0b334b22af
commit 1192abbf38
2 changed files with 9 additions and 9 deletions

View File

@@ -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();

View File

@@ -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;
}