2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/extensions/window-list/extension.js
|
2019-10-04 17:46:50 +02:00
|
|
|
===================================================================
|
2021-04-12 14:23:50 +02:00
|
|
|
--- gnome-shell-extensions-40.0.orig/extensions/window-list/extension.js
|
|
|
|
+++ gnome-shell-extensions-40.0/extensions/window-list/extension.js
|
2019-10-04 17:46:50 +02:00
|
|
|
@@ -23,6 +23,9 @@ const GroupingMode = {
|
|
|
|
ALWAYS: 2,
|
2017-11-07 10:42:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
+function isSLEClassicMode() {
|
|
|
|
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
|
|
+}
|
2019-10-04 17:46:50 +02:00
|
|
|
|
|
|
|
function _minimizeOrActivateWindow(window) {
|
|
|
|
let focusWindow = global.display.focus_window;
|
2020-04-18 00:56:26 +02:00
|
|
|
@@ -687,11 +690,13 @@ class WindowList extends St.Widget {
|
2019-12-10 21:37:05 +01:00
|
|
|
let box = new St.BoxLayout({ x_expand: true, y_expand: true });
|
|
|
|
this.add_actor(box);
|
|
|
|
|
|
|
|
- let toggle = new WindowPickerToggle();
|
|
|
|
- box.add_actor(toggle);
|
|
|
|
+ if (!isSLEClassicMode()) {
|
|
|
|
+ let toggle = new WindowPickerToggle();
|
|
|
|
+ box.add_actor(toggle);
|
|
|
|
|
|
|
|
- toggle.connect('notify::checked',
|
|
|
|
- this._updateWindowListVisibility.bind(this));
|
|
|
|
+ toggle.connect('notify::checked',
|
|
|
|
+ this._updateWindowListVisibility.bind(this));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
let layout = new Clutter.BoxLayout({ homogeneous: true });
|
|
|
|
this._windowList = new St.Widget({
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -832,7 +837,8 @@ class WindowList extends St.Widget {
|
2019-12-10 21:37:05 +01:00
|
|
|
let workspacesOnMonitor = this._monitor === Main.layoutManager.primaryMonitor ||
|
|
|
|
!this._mutterSettings.get_boolean('workspaces-only-on-primary');
|
|
|
|
|
|
|
|
- this._workspaceIndicator.visible = hasWorkspaces && workspacesOnMonitor;
|
|
|
|
+ if (this._workspaceIndicator != null)
|
|
|
|
+ this._workspaceIndicator.visible = hasWorkspaces && workspacesOnMonitor;
|
|
|
|
}
|
|
|
|
|
|
|
|
_updateWindowListVisibility() {
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -868,6 +874,9 @@ class WindowList extends St.Widget {
|
2019-12-10 21:37:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
_getMaxWindowListWidth() {
|
|
|
|
+ if (this._workspaceIndicator == null)
|
|
|
|
+ return this.width;
|
|
|
|
+
|
|
|
|
let indicatorsBox = this._workspaceIndicator.get_parent();
|
|
|
|
return this.width - indicatorsBox.get_preferred_width(-1)[1];
|
|
|
|
}
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -1068,7 +1077,8 @@ class WindowList extends St.Widget {
|
2019-12-10 21:37:05 +01:00
|
|
|
this._mutterSettings.disconnect(this._workspacesOnlyOnPrimaryChangedId);
|
|
|
|
this._mutterSettings.disconnect(this._dynamicWorkspacesChangedId);
|
|
|
|
|
|
|
|
- this._workspaceIndicator.destroy();
|
|
|
|
+ if (this._workspaceIndicator != null)
|
|
|
|
+ this._workspaceIndicator.destroy();
|
|
|
|
|
|
|
|
Main.ctrlAltTabManager.removeGroup(this);
|
|
|
|
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -1107,6 +1117,7 @@ class Extension {
|
2019-12-10 21:37:05 +01:00
|
|
|
constructor() {
|
|
|
|
this._windowLists = null;
|
|
|
|
this._hideOverviewOrig = Main.overview.hide;
|
|
|
|
+ this._isSLEClassic = isSLEClassicMode();
|
|
|
|
}
|
|
|
|
|
|
|
|
enable() {
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -1126,19 +1137,47 @@ class Extension {
|
2019-10-04 17:46:50 +02:00
|
|
|
this._hideOverviewOrig.call(Main.overview);
|
|
|
|
};
|
|
|
|
|
|
|
|
+ if (isSLEClassicMode()) {
|
|
|
|
+ this.overviewShowingId = Main.overview.connect('showing', () => {
|
|
|
|
+ Main.panel._centerBox.hide(); });
|
|
|
|
+ this.overviewHidingId = Main.overview.connect('hiding', () => {
|
|
|
|
+ Main.panel._centerBox.show(); });
|
2017-11-07 10:42:17 +01:00
|
|
|
+ }
|
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
this._buildWindowLists();
|
|
|
|
}
|
|
|
|
|
|
|
|
_buildWindowLists() {
|
|
|
|
- this._windowLists.forEach(list => list.destroy());
|
|
|
|
+ this._windowLists.forEach(list => {
|
|
|
|
+ if (isSLEClassicMode()) {
|
|
|
|
+ Main.panel._centerBox.remove_child(list._windowList);
|
|
|
|
+ let [box] = list.get_children();
|
|
|
|
+ box.add_child(list._windowList);
|
2016-09-01 12:12:54 +02:00
|
|
|
+ }
|
2017-11-07 10:42:17 +01:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ list.destroy();
|
|
|
|
+ });
|
|
|
|
this._windowLists = [];
|
|
|
|
|
|
|
|
let showOnAllMonitors = this._settings.get_boolean('show-on-all-monitors');
|
|
|
|
|
|
|
|
- Main.layoutManager.monitors.forEach(monitor => {
|
|
|
|
- if (showOnAllMonitors || monitor === Main.layoutManager.primaryMonitor)
|
|
|
|
+ if (isSLEClassicMode()){
|
|
|
|
+ let list = new WindowList(false, Main.layoutManager.primaryMonitor);
|
2019-12-10 21:37:05 +01:00
|
|
|
+ list._workspaceIndicator.destroy();
|
|
|
|
+ list._workspaceIndicator = null;
|
2019-10-04 17:46:50 +02:00
|
|
|
+ Main.layoutManager.removeChrome(list);
|
2017-11-07 10:42:17 +01:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ let [box] = list.get_children();
|
|
|
|
+ box.remove_child(list._windowList);
|
2019-12-10 21:37:05 +01:00
|
|
|
+ Main.panel._centerBox.add_child(list._windowList);
|
2017-11-07 10:42:17 +01:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ this._windowLists.push(list);
|
2017-11-07 10:42:17 +01:00
|
|
|
+ } else {
|
2019-10-04 17:46:50 +02:00
|
|
|
+ Main.layoutManager.monitors.forEach(monitor => {
|
|
|
|
+ if (showOnAllMonitors || monitor == Main.layoutManager.primaryMonitor)
|
|
|
|
this._windowLists.push(new WindowList(showOnAllMonitors, monitor));
|
|
|
|
- });
|
|
|
|
+ });
|
2017-11-07 10:42:17 +01:00
|
|
|
+ }
|
2019-10-04 17:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
disable() {
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -1152,6 +1191,11 @@ class Extension {
|
2019-10-04 17:46:50 +02:00
|
|
|
this._monitorsChangedId = 0;
|
|
|
|
|
|
|
|
this._windowLists.forEach(windowList => {
|
2019-12-10 21:37:05 +01:00
|
|
|
+ if (this._isSLEClassic) {
|
|
|
|
+ Main.panel._centerBox.remove_child(windowList._windowList);
|
|
|
|
+ let [box] = windowList.get_children();
|
|
|
|
+ box.add_child(windowList._windowList);
|
|
|
|
+ }
|
2019-10-04 17:46:50 +02:00
|
|
|
windowList.hide();
|
|
|
|
windowList.destroy();
|
|
|
|
});
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -1160,6 +1204,11 @@ class Extension {
|
2019-10-04 17:46:50 +02:00
|
|
|
Main.windowPicker.destroy();
|
|
|
|
delete Main.windowPicker;
|
|
|
|
|
2019-12-10 21:37:05 +01:00
|
|
|
+ if (this._isSLEClassic) {
|
2019-10-04 17:46:50 +02:00
|
|
|
+ Main.overview.disconnect(this.overviewShowingId);
|
|
|
|
+ Main.overview.disconnect(this.overviewHidingId);
|
2017-11-07 10:42:17 +01:00
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
Main.overview.hide = this._hideOverviewOrig;
|
|
|
|
}
|
|
|
|
|
2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/extensions/window-list/sle-classic.css
|
2019-10-04 17:46:50 +02:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2021-04-12 14:23:50 +02:00
|
|
|
+++ gnome-shell-extensions-40.0/extensions/window-list/sle-classic.css
|
2019-10-04 17:46:50 +02:00
|
|
|
@@ -0,0 +1,46 @@
|
|
|
|
+@import url("stylesheet.css");
|
|
|
|
+
|
|
|
|
+#panel.bottom-panel {
|
|
|
|
+ border-top-width: 1px;
|
|
|
|
+ border-bottom-width: 0px;
|
|
|
|
+ height: 2.25em ;
|
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button > StWidget {
|
|
|
|
+ background-gradient-drection: vertical;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ background-gradient-start: #fff;
|
|
|
|
+ background-gradient-end: #eee;
|
|
|
|
+ color: #000;
|
|
|
|
+ -st-natural-width: 18.7em;
|
|
|
|
+ max-width: 18.75em;
|
|
|
|
+ color: #2e3436;
|
|
|
|
+ background-color: #eee;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ padding: 0px 6px 0px;
|
|
|
|
+ box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5);
|
|
|
|
+ text-shadow: 0 0 transparent;
|
|
|
|
+ }
|
2017-08-24 18:46:42 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button:hover > StWidget {
|
|
|
|
+ background-color: #f9f9f9;
|
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button:active > StWidget,
|
|
|
|
+ .window-button:focus > StWidget {
|
|
|
|
+ box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
|
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button.focused > StWidget {
|
|
|
|
+ background-color: #ddd;
|
|
|
|
+ box-shadow: inset 1px 1px 1px rgba(0,0,0,0.5);
|
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button.focused:hover > StWidget {
|
|
|
|
+ background-color: #e9e9e9;
|
|
|
|
+ }
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+ .window-button.minimized > StWidget {
|
|
|
|
+ color: #888;
|
|
|
|
+ box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5);
|
|
|
|
+ }
|
2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/extensions/places-menu/extension.js
|
2019-10-04 17:46:50 +02:00
|
|
|
===================================================================
|
2021-04-12 14:23:50 +02:00
|
|
|
--- gnome-shell-extensions-40.0.orig/extensions/places-menu/extension.js
|
|
|
|
+++ gnome-shell-extensions-40.0/extensions/places-menu/extension.js
|
|
|
|
@@ -139,13 +139,21 @@ function init() {
|
2019-04-17 14:56:20 +02:00
|
|
|
|
2019-10-04 17:46:50 +02:00
|
|
|
let _indicator;
|
2019-04-17 14:56:20 +02:00
|
|
|
|
2019-10-04 17:46:50 +02:00
|
|
|
+function isSLEClassicMode() {
|
|
|
|
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
function enable() {
|
|
|
|
_indicator = new PlacesMenu();
|
2019-04-17 14:56:20 +02:00
|
|
|
|
2019-10-04 17:46:50 +02:00
|
|
|
let pos = Main.sessionMode.panel.left.indexOf('appMenu');
|
|
|
|
if ('apps-menu' in Main.panel.statusArea)
|
|
|
|
pos++;
|
|
|
|
- Main.panel.addToStatusArea('places-menu', _indicator, pos, 'left');
|
|
|
|
+
|
|
|
|
+ if (isSLEClassicMode())
|
|
|
|
+ Main.panel.addToStatusArea('places-menu', _indicator, 1, 'left');
|
|
|
|
+ else
|
|
|
|
+ Main.panel.addToStatusArea('places-menu', _indicator, pos, 'left');
|
2019-04-17 14:56:20 +02:00
|
|
|
}
|
2017-11-07 10:42:17 +01:00
|
|
|
|
2019-10-04 17:46:50 +02:00
|
|
|
function disable() {
|
2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/extensions/apps-menu/extension.js
|
2019-10-04 17:46:50 +02:00
|
|
|
===================================================================
|
2021-04-12 14:23:50 +02:00
|
|
|
--- gnome-shell-extensions-40.0.orig/extensions/apps-menu/extension.js
|
|
|
|
+++ gnome-shell-extensions-40.0/extensions/apps-menu/extension.js
|
2019-10-04 17:46:50 +02:00
|
|
|
@@ -27,6 +27,10 @@ const NAVIGATION_REGION_OVERSHOOT = 50;
|
|
|
|
Gio._promisify(Gio._LocalFilePrototype, 'query_info_async', 'query_info_finish');
|
|
|
|
Gio._promisify(Gio._LocalFilePrototype, 'set_attributes_async', 'set_attributes_finish');
|
2016-09-01 12:12:54 +02:00
|
|
|
|
2019-10-04 17:46:50 +02:00
|
|
|
+function isSLEClassicMode() {
|
|
|
|
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
2016-09-01 12:12:54 +02:00
|
|
|
+}
|
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
var ApplicationMenuItem = GObject.registerClass(
|
|
|
|
class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|
|
|
_init(button, app) {
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -707,8 +711,6 @@ class ApplicationsButton extends PanelMe
|
2019-10-04 17:46:50 +02:00
|
|
|
this.applicationsByCategory = {};
|
|
|
|
this._tree.load_sync();
|
|
|
|
let root = this._tree.get_root_directory();
|
|
|
|
- let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
|
|
- this.categoriesBox.add_actor(categoryMenuItem);
|
|
|
|
let iter = root.iter();
|
|
|
|
let nextType;
|
|
|
|
while ((nextType = iter.next()) !== GMenu.TreeItemType.INVALID) {
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -723,11 +725,15 @@ class ApplicationsButton extends PanelMe
|
2019-10-04 17:46:50 +02:00
|
|
|
this.applicationsByCategory[categoryId] = [];
|
|
|
|
this._loadCategory(categoryId, dir);
|
|
|
|
if (this.applicationsByCategory[categoryId].length > 0) {
|
|
|
|
- categoryMenuItem = new CategoryMenuItem(this, dir);
|
|
|
|
+ let categoryMenuItem = new CategoryMenuItem(this, dir);
|
|
|
|
this.categoriesBox.add_actor(categoryMenuItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+ //put the favorites at the end of the app catogories
|
|
|
|
+ //bnc#890989
|
|
|
|
+ let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
|
|
+ this.categoriesBox.insert_child_at_index(categoryMenuItem,
|
|
|
|
+ isSLEClassicMode() ? -1 : 0);
|
|
|
|
// Load applications
|
|
|
|
this._displayButtons(this._listApplications(null));
|
|
|
|
|
2021-04-12 14:23:50 +02:00
|
|
|
@@ -790,7 +796,10 @@ let appsMenuButton;
|
2019-10-04 17:46:50 +02:00
|
|
|
function enable() {
|
|
|
|
appsMenuButton = new ApplicationsButton();
|
|
|
|
let index = Main.sessionMode.panel.left.indexOf('activities') + 1;
|
|
|
|
- Main.panel.addToStatusArea('apps-menu', appsMenuButton, index, 'left');
|
|
|
|
+ if (isSLEClassicMode())
|
|
|
|
+ Main.panel.addToStatusArea('apps-menu', appsMenuButton, 0, 'left');
|
|
|
|
+ else
|
|
|
|
+ Main.panel.addToStatusArea('apps-menu', appsMenuButton, index, 'left');
|
2016-09-01 12:12:54 +02:00
|
|
|
}
|
2019-10-04 17:46:50 +02:00
|
|
|
|
|
|
|
function disable() {
|
2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/data/gnome-classic.css
|
2019-10-04 17:46:50 +02:00
|
|
|
===================================================================
|
2021-04-12 14:23:50 +02:00
|
|
|
--- gnome-shell-extensions-40.0.orig/data/gnome-classic.css
|
|
|
|
+++ gnome-shell-extensions-40.0/data/gnome-classic.css
|
|
|
|
@@ -2257,9 +2257,9 @@ StScrollBar {
|
|
|
|
#panel.solid .panel-corner:focus {
|
|
|
|
-panel-corner-radius: 0; }
|
|
|
|
#panel.lock-screen, #panel.unlock-screen, #panel.login-screen, #panel.solid.lock-screen, #panel.solid.unlock-screen, #panel.solid.login-screen {
|
|
|
|
- background-color: rgba(246, 245, 244, 0.5);
|
|
|
|
- background-gradient-start: rgba(246, 245, 244, 0.5);
|
|
|
|
- background-gradient-end: rgba(246, 245, 244, 0.5);
|
2019-10-18 14:39:21 +02:00
|
|
|
+ background-color: transparent;
|
|
|
|
+ background-gradient-direction: none;
|
|
|
|
+ background-gradient-end: none;
|
2021-04-12 14:23:50 +02:00
|
|
|
border-bottom: none; }
|
|
|
|
#panel.lock-screen .panel-button, #panel.unlock-screen .panel-button, #panel.login-screen .panel-button, #panel.solid.lock-screen .panel-button, #panel.solid.unlock-screen .panel-button, #panel.solid.login-screen .panel-button {
|
|
|
|
color: #eeeeec; }
|
|
|
|
@@ -2286,3 +2286,6 @@ StScrollBar {
|
2019-10-04 17:46:50 +02:00
|
|
|
|
2021-04-12 14:23:50 +02:00
|
|
|
.calendar-day-with-events {
|
|
|
|
background-image: url("calendar-today.svg"); }
|
|
|
|
+
|
2019-10-04 17:46:50 +02:00
|
|
|
+.popup-menu.panel-menu {
|
|
|
|
+ margin-bottom: 0em; }
|
2021-04-12 14:23:50 +02:00
|
|
|
Index: gnome-shell-extensions-40.0/extensions/workspace-indicator/extension.js
|
|
|
|
===================================================================
|
|
|
|
--- gnome-shell-extensions-40.0.orig/extensions/workspace-indicator/extension.js
|
|
|
|
+++ gnome-shell-extensions-40.0/extensions/workspace-indicator/extension.js
|
|
|
|
@@ -322,7 +322,8 @@ class WorkspaceIndicator extends PanelMe
|
|
|
|
_updateThumbnailVisibility() {
|
|
|
|
const { workspaceManager } = global;
|
|
|
|
const vertical = workspaceManager.layout_rows === -1;
|
|
|
|
- const useMenu =
|
|
|
|
+ let isSLEClassicMode = Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
|
|
+ const useMenu = isSLEClassicMode ? true :
|
|
|
|
vertical || workspaceManager.n_workspaces > MAX_THUMBNAILS;
|
|
|
|
this.reactive = useMenu;
|
|
|
|
|
|
|
|
Index: gnome-shell-extensions-40.0/extensions/workspace-indicator/stylesheet.css
|
|
|
|
===================================================================
|
|
|
|
--- gnome-shell-extensions-40.0.orig/extensions/workspace-indicator/stylesheet.css
|
|
|
|
+++ gnome-shell-extensions-40.0/extensions/workspace-indicator/stylesheet.css
|
|
|
|
@@ -1,5 +1,7 @@
|
|
|
|
.panel-workspace-indicator {
|
|
|
|
padding: 0 8px;
|
|
|
|
+ background-color: rgba(200, 200, 200, .5);
|
|
|
|
+ border: 1px solid #cccccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-workspace-indicator-box {
|