Index: gnome-shell-extensions-3.34.0/extensions/window-list/extension.js =================================================================== --- gnome-shell-extensions-3.34.0.orig/extensions/window-list/extension.js +++ gnome-shell-extensions-3.34.0/extensions/window-list/extension.js @@ -23,6 +23,9 @@ const GroupingMode = { ALWAYS: 2, }; +function isSLEClassicMode() { + return Main.sessionMode.currentMode == "sle-classic" ? true : false; +} function _minimizeOrActivateWindow(window) { let focusWindow = global.display.focus_window; @@ -1141,19 +1144,45 @@ class Extension { 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(); }); + } + 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); + } + + 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); + Main.layoutManager.removeChrome(list); + + let [box] = list.get_children(); + box.remove_child(list._windowList); + Main.panel._centerBox.add(list._windowList, {expand: true, x_align: St.Align.START}); + + this._windowLists.push(list); + } else { + Main.layoutManager.monitors.forEach(monitor => { + if (showOnAllMonitors || monitor == Main.layoutManager.primaryMonitor) this._windowLists.push(new WindowList(showOnAllMonitors, monitor)); - }); + }); + } } disable() { @@ -1167,6 +1196,7 @@ class Extension { this._monitorsChangedId = 0; this._windowLists.forEach(windowList => { + Main.panel._centerBox.remove_child(windowList._windowList); windowList.hide(); windowList.destroy(); }); @@ -1175,6 +1205,11 @@ class Extension { Main.windowPicker.destroy(); delete Main.windowPicker; + if (isSLEClassicMode()) { + Main.overview.disconnect(this.overviewShowingId); + Main.overview.disconnect(this.overviewHidingId); + } + Main.overview.hide = this._hideOverviewOrig; } Index: gnome-shell-extensions-3.34.0/extensions/window-list/sle-classic.css =================================================================== --- /dev/null +++ gnome-shell-extensions-3.34.0/extensions/window-list/sle-classic.css @@ -0,0 +1,46 @@ +@import url("stylesheet.css"); + +#panel.bottom-panel { + border-top-width: 1px; + border-bottom-width: 0px; + height: 2.25em ; + } + + .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; + } + + .window-button:hover > StWidget { + background-color: #f9f9f9; + } + + .window-button:active > StWidget, + .window-button:focus > StWidget { + box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5); + } + + .window-button.focused > StWidget { + background-color: #ddd; + box-shadow: inset 1px 1px 1px rgba(0,0,0,0.5); + } + + .window-button.focused:hover > StWidget { + background-color: #e9e9e9; + } + + .window-button.minimized > StWidget { + color: #888; + box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5); + } Index: gnome-shell-extensions-3.34.0/extensions/places-menu/extension.js =================================================================== --- gnome-shell-extensions-3.34.0.orig/extensions/places-menu/extension.js +++ gnome-shell-extensions-3.34.0/extensions/places-menu/extension.js @@ -133,13 +133,21 @@ function init() { let _indicator; +function isSLEClassicMode() { + return Main.sessionMode.currentMode == "sle-classic" ? true : false; +} + function enable() { _indicator = new PlacesMenu(); 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'); } function disable() { Index: gnome-shell-extensions-3.34.0/extensions/apps-menu/extension.js =================================================================== --- gnome-shell-extensions-3.34.0.orig/extensions/apps-menu/extension.js +++ gnome-shell-extensions-3.34.0/extensions/apps-menu/extension.js @@ -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'); +function isSLEClassicMode() { + return Main.sessionMode.currentMode == "sle-classic" ? true : false; +} + var ApplicationMenuItem = GObject.registerClass( class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem { _init(button, app) { @@ -728,8 +732,6 @@ class ApplicationsButton extends PanelMe 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) { @@ -744,11 +746,15 @@ class ApplicationsButton extends PanelMe 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)); @@ -811,7 +817,10 @@ let appsMenuButton; 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'); } function disable() { Index: gnome-shell-extensions-3.34.0/data/gnome-classic.scss =================================================================== --- gnome-shell-extensions-3.34.0.orig/data/gnome-classic.scss +++ gnome-shell-extensions-3.34.0/data/gnome-classic.scss @@ -93,3 +93,5 @@ $variant: 'light'; background-image: url("calendar-today.svg"); } +.popup-menu.panel-menu { + margin-bottom: 0em; }