Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d338930d69 | ||
|
|
35c1763792 | ||
|
|
7a87bdcb1b | ||
|
|
50b6bd1884 | ||
|
|
db853d9023 | ||
|
|
5be44705f7 | ||
|
|
fdfa46099b | ||
|
|
f987e5f13d | ||
|
|
c766230118 | ||
|
|
bb2b1204b4 | ||
|
|
cf3690a434 | ||
|
|
7062acf10f | ||
|
|
7ace9c4d51 | ||
|
|
23887ce2a3 |
21
NEWS
21
NEWS
@@ -1,3 +1,24 @@
|
|||||||
|
40.0
|
||||||
|
====
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Jiri Grönroos [fi]
|
||||||
|
|
||||||
|
40.rc
|
||||||
|
=====
|
||||||
|
* native-window-placement: Adjust to gnome-shell changes [Florian; !164]
|
||||||
|
* windows-navigator: Adjust to gnome-shell changes [Florian; !163]
|
||||||
|
* window-list, workspace-indicator: Only show previews for up to six workspaces
|
||||||
|
[Florian; !165]
|
||||||
|
* window-list, workspace-indicator: Improve workspace preview appearance
|
||||||
|
[Florian; !166]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Florian Müllner
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Fran Dieguez [gl]
|
||||||
|
|
||||||
40.beta
|
40.beta
|
||||||
=======
|
=======
|
||||||
* Add tooltips to workspace thumbnails [Florian; !155]
|
* Add tooltips to workspace thumbnails [Florian; !155]
|
||||||
|
|||||||
Submodule data/gnome-shell-sass updated: 179ce628ca...63f6677765
@@ -3,6 +3,7 @@
|
|||||||
const { Clutter } = imports.gi;
|
const { Clutter } = imports.gi;
|
||||||
|
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
const Main = imports.ui.main;
|
||||||
const { WindowPreview } = imports.ui.windowPreview;
|
const { WindowPreview } = imports.ui.windowPreview;
|
||||||
const Workspace = imports.ui.workspace;
|
const Workspace = imports.ui.workspace;
|
||||||
|
|
||||||
@@ -66,13 +67,15 @@ class Rect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
|
class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
|
||||||
constructor(settings) {
|
constructor(params, settings) {
|
||||||
super();
|
super(params);
|
||||||
this._settings = settings;
|
this._settings = settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
computeLayout(windows, layout) {
|
computeLayout(windows, _params) {
|
||||||
layout.windows = windows;
|
return {
|
||||||
|
windows,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -246,23 +249,36 @@ function enable() {
|
|||||||
let settings = ExtensionUtils.getSettings();
|
let settings = ExtensionUtils.getSettings();
|
||||||
|
|
||||||
workspaceInjections['_createBestLayout'] = Workspace.WorkspaceLayout.prototype._createBestLayout;
|
workspaceInjections['_createBestLayout'] = Workspace.WorkspaceLayout.prototype._createBestLayout;
|
||||||
Workspace.WorkspaceLayout.prototype._createBestLayout = function (area) {
|
Workspace.WorkspaceLayout.prototype._createBestLayout = function (_area) {
|
||||||
let strategy = new NaturalLayoutStrategy(settings);
|
this._layoutStrategy = new NaturalLayoutStrategy({
|
||||||
let layout = { area, strategy };
|
monitor: Main.layoutManager.monitors[this._monitorIndex],
|
||||||
strategy.computeLayout(this._sortedWindows, layout);
|
}, settings);
|
||||||
|
return this._layoutStrategy.computeLayout(this._sortedWindows);
|
||||||
return layout;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// position window titles on top of windows in overlay
|
// position window titles on top of windows in overlay
|
||||||
winInjections['_init'] = WindowPreview.prototype._init;
|
winInjections['_init'] = WindowPreview.prototype._init;
|
||||||
WindowPreview.prototype._init = function (metaWindow, workspace) {
|
WindowPreview.prototype._init = function (...args) {
|
||||||
winInjections['_init'].call(this, metaWindow, workspace);
|
winInjections['_init'].call(this, ...args);
|
||||||
|
|
||||||
const constraint = this._title.get_constraints().find(
|
if (!settings.get_boolean('window-captions-on-top'))
|
||||||
|
return;
|
||||||
|
|
||||||
|
const alignConstraint = this._title.get_constraints().find(
|
||||||
c => c.align_axis && c.align_axis === Clutter.AlignAxis.Y_AXIS);
|
c => c.align_axis && c.align_axis === Clutter.AlignAxis.Y_AXIS);
|
||||||
constraint.factor = settings.get_boolean('window-captions-on-top')
|
alignConstraint.factor = 0;
|
||||||
? 0 : 1;
|
|
||||||
|
const bindConstraint = this._title.get_constraints().find(
|
||||||
|
c => c.coordinate && c.coordinate === Clutter.BindCoordinate.Y);
|
||||||
|
bindConstraint.offset = 0;
|
||||||
|
};
|
||||||
|
winInjections['_adjustOverlayOffsets'] =
|
||||||
|
WindowPreview.prototype._adjustOverlayOffsets;
|
||||||
|
WindowPreview.prototype._adjustOverlayOffsets = function (...args) {
|
||||||
|
winInjections['_adjustOverlayOffsets'].call(this, ...args);
|
||||||
|
|
||||||
|
if (settings.get_boolean('window-captions-on-top'))
|
||||||
|
this._title.translation_y = -this._title.translation_y;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,12 @@
|
|||||||
|
|
||||||
/* workspace switcher */
|
/* workspace switcher */
|
||||||
.window-list-workspace-indicator .workspace {
|
.window-list-workspace-indicator .workspace {
|
||||||
background-color: #ddd;
|
border: 2px solid #f6f5f4;
|
||||||
|
background-color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace.active {
|
.window-list-workspace-indicator .workspace.active {
|
||||||
background-color: #ccc;
|
border-color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-list-window-preview {
|
.window-list-window-preview {
|
||||||
@@ -64,5 +65,4 @@
|
|||||||
|
|
||||||
.window-list-window-preview.active {
|
.window-list-window-preview.active {
|
||||||
background-color: #f6f5f4;
|
background-color: #f6f5f4;
|
||||||
border: 2px solid #888;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
.window-picker-toggle > StWidget {
|
.window-picker-toggle > StWidget {
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
border-radius: 4px;
|
border-radius: 2px;
|
||||||
padding: 3px 6px 1px;
|
padding: 3px 6px 1px;
|
||||||
box-shadow: inset 1px 1px 4px rgba(255,255,255,0.5);
|
box-shadow: inset 1px 1px 4px rgba(255,255,255,0.5);
|
||||||
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
|
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
|
||||||
@@ -91,37 +91,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace {
|
.window-list-workspace-indicator .workspace {
|
||||||
border: 1px solid #cccccc;
|
border: 2px solid #000;
|
||||||
width: 52px;
|
width: 52px;
|
||||||
}
|
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace:first-child:last-child:ltr,
|
|
||||||
.window-list-workspace-indicator .workspace:first-child:last-child:rtl {
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
background-color: #595959;
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace:first-child:ltr,
|
|
||||||
.window-list-workspace-indicator .workspace:last-child:rtl {
|
|
||||||
border-radius: 4px 0 0 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace:first-child:rtl,
|
|
||||||
.window-list-workspace-indicator .workspace:last-child:ltr {
|
|
||||||
border-radius: 0 4px 4px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-list-workspace-indicator .workspace.active {
|
.window-list-workspace-indicator .workspace.active {
|
||||||
background-color: rgba(200, 200, 200, .3);
|
border-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-list-window-preview {
|
.window-list-window-preview {
|
||||||
background-color: #252525;
|
background-color: #bebebe;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #828282;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-list-window-preview.active {
|
.window-list-window-preview.active {
|
||||||
background-color: #353535;
|
background-color: #d4d4d4;
|
||||||
border: 2px solid #ccc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification {
|
.notification {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ const _ = Gettext.gettext;
|
|||||||
const TOOLTIP_OFFSET = 6;
|
const TOOLTIP_OFFSET = 6;
|
||||||
const TOOLTIP_ANIMATION_TIME = 150;
|
const TOOLTIP_ANIMATION_TIME = 150;
|
||||||
|
|
||||||
|
const MAX_THUMBNAILS = 6;
|
||||||
|
|
||||||
let WindowPreview = GObject.registerClass(
|
let WindowPreview = GObject.registerClass(
|
||||||
class WindowPreview extends St.Button {
|
class WindowPreview extends St.Button {
|
||||||
_init(window) {
|
_init(window) {
|
||||||
@@ -286,13 +288,13 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
workspaceManager.connect_after('workspace-switched',
|
workspaceManager.connect_after('workspace-switched',
|
||||||
this._onWorkspaceSwitched.bind(this)),
|
this._onWorkspaceSwitched.bind(this)),
|
||||||
workspaceManager.connect('notify::layout-rows',
|
workspaceManager.connect('notify::layout-rows',
|
||||||
this._onWorkspaceOrientationChanged.bind(this)),
|
this._updateThumbnailVisibility.bind(this)),
|
||||||
];
|
];
|
||||||
|
|
||||||
this.connect('scroll-event', this._onScrollEvent.bind(this));
|
this.connect('scroll-event', this._onScrollEvent.bind(this));
|
||||||
this._updateMenu();
|
this._updateMenu();
|
||||||
this._updateThumbnails();
|
this._updateThumbnails();
|
||||||
this._onWorkspaceOrientationChanged();
|
this._updateThumbnailVisibility();
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.wm.preferences' });
|
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.wm.preferences' });
|
||||||
this._settingsChangedId = this._settings.connect(
|
this._settingsChangedId = this._settings.connect(
|
||||||
@@ -311,12 +313,15 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
super._onDestroy();
|
super._onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onWorkspaceOrientationChanged() {
|
_updateThumbnailVisibility() {
|
||||||
let vertical = global.workspace_manager.layout_rows === -1;
|
const { workspaceManager } = global;
|
||||||
this.reactive = vertical;
|
const vertical = workspaceManager.layout_rows === -1;
|
||||||
|
const useMenu =
|
||||||
|
vertical || workspaceManager.n_workspaces > MAX_THUMBNAILS;
|
||||||
|
this.reactive = useMenu;
|
||||||
|
|
||||||
this._statusBin.visible = vertical;
|
this._statusBin.visible = useMenu;
|
||||||
this._thumbnailsBox.visible = !vertical;
|
this._thumbnailsBox.visible = !useMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onWorkspaceSwitched() {
|
_onWorkspaceSwitched() {
|
||||||
@@ -332,6 +337,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
_nWorkspacesChanged() {
|
_nWorkspacesChanged() {
|
||||||
this._updateMenu();
|
this._updateMenu();
|
||||||
this._updateThumbnails();
|
this._updateThumbnails();
|
||||||
|
this._updateThumbnailVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateMenuOrnament() {
|
_updateMenuOrnament() {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
const { Clutter, Graphene, GObject, St } = imports.gi;
|
const { Clutter, Graphene, GObject, St } = imports.gi;
|
||||||
|
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
|
const OverviewControls = imports.ui.overviewControls;
|
||||||
const Workspace = imports.ui.workspace;
|
const Workspace = imports.ui.workspace;
|
||||||
const WorkspacesView = imports.ui.workspacesView;
|
const WorkspacesView = imports.ui.workspacesView;
|
||||||
|
|
||||||
@@ -10,10 +11,10 @@ const WINDOW_SLOT = 4;
|
|||||||
|
|
||||||
var MyWorkspace = GObject.registerClass(
|
var MyWorkspace = GObject.registerClass(
|
||||||
class MyWorkspace extends Workspace.Workspace {
|
class MyWorkspace extends Workspace.Workspace {
|
||||||
_init(metaWorkspace, monitorIndex) {
|
_init(...args) {
|
||||||
super._init(metaWorkspace, monitorIndex);
|
super._init(...args);
|
||||||
|
|
||||||
if (metaWorkspace && metaWorkspace.index() < 9) {
|
if (this.metaWorkspace && this.metaWorkspace.index() < 9) {
|
||||||
this._tip = new St.Label({
|
this._tip = new St.Label({
|
||||||
style_class: 'extension-windowsNavigator-window-tooltip',
|
style_class: 'extension-windowsNavigator-window-tooltip',
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -49,21 +50,24 @@ class MyWorkspace extends Workspace.Workspace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getWindowWithTooltip(id) {
|
getWindowWithTooltip(id) {
|
||||||
const slot = this.layout_manager._windowSlots[id - 1];
|
const { layoutManager } = this._container;
|
||||||
|
const slot = layoutManager._windowSlots[id - 1];
|
||||||
return slot ? slot[WINDOW_SLOT].metaWindow : null;
|
return slot ? slot[WINDOW_SLOT].metaWindow : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
showWindowsTooltips() {
|
showWindowsTooltips() {
|
||||||
for (let i = 0; i < this.layout_manager._windowSlots.length; i++) {
|
const { layoutManager } = this._container;
|
||||||
if (this.layout_manager._windowSlots[i])
|
for (let i = 0; i < layoutManager._windowSlots.length; i++) {
|
||||||
this.layout_manager._windowSlots[i][WINDOW_SLOT].showTooltip(`${i + 1}`);
|
if (layoutManager._windowSlots[i])
|
||||||
|
layoutManager._windowSlots[i][WINDOW_SLOT].showTooltip(`${i + 1}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hideWindowsTooltips() {
|
hideWindowsTooltips() {
|
||||||
for (let i in this.layout_manager._windowSlots) {
|
const { layoutManager } = this._container;
|
||||||
if (this.layout_manager._windowSlots[i])
|
for (let i in layoutManager._windowSlots) {
|
||||||
this.layout_manager._windowSlots[i][WINDOW_SLOT].hideTooltip();
|
if (layoutManager._windowSlots[i])
|
||||||
|
layoutManager._windowSlots[i][WINDOW_SLOT].hideTooltip();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,17 +84,17 @@ class MyWorkspace extends Workspace.Workspace {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this._text.add_constraint(new Clutter.BindConstraint({
|
this._text.add_constraint(new Clutter.BindConstraint({
|
||||||
source: this._borderCenter,
|
source: this._windowContainer,
|
||||||
coordinate: Clutter.BindCoordinate.POSITION,
|
coordinate: Clutter.BindCoordinate.POSITION,
|
||||||
}));
|
}));
|
||||||
this._text.add_constraint(new Clutter.AlignConstraint({
|
this._text.add_constraint(new Clutter.AlignConstraint({
|
||||||
source: this._borderCenter,
|
source: this._windowContainer,
|
||||||
align_axis: Clutter.AlignAxis.X_AXIS,
|
align_axis: Clutter.AlignAxis.X_AXIS,
|
||||||
pivot_point: new Graphene.Point({ x: 0.5, y: -1 }),
|
pivot_point: new Graphene.Point({ x: 0.5, y: -1 }),
|
||||||
factor: this._closeButtonSide === St.Side.LEFT ? 1 : 0,
|
factor: this._closeButtonSide === St.Side.LEFT ? 1 : 0,
|
||||||
}));
|
}));
|
||||||
this._text.add_constraint(new Clutter.AlignConstraint({
|
this._text.add_constraint(new Clutter.AlignConstraint({
|
||||||
source: this._borderCenter,
|
source: this._windowContainer,
|
||||||
align_axis: Clutter.AlignAxis.Y_AXIS,
|
align_axis: Clutter.AlignAxis.Y_AXIS,
|
||||||
pivot_point: new Graphene.Point({ x: -1, y: 0.5 }),
|
pivot_point: new Graphene.Point({ x: -1, y: 0.5 }),
|
||||||
factor: 0,
|
factor: 0,
|
||||||
@@ -115,8 +119,8 @@ class MyWorkspace extends Workspace.Workspace {
|
|||||||
|
|
||||||
var MyWorkspacesView = GObject.registerClass(
|
var MyWorkspacesView = GObject.registerClass(
|
||||||
class MyWorkspacesView extends WorkspacesView.WorkspacesView {
|
class MyWorkspacesView extends WorkspacesView.WorkspacesView {
|
||||||
_init(width, height, x, y, workspaces) {
|
_init(...args) {
|
||||||
super._init(width, height, x, y, workspaces);
|
super._init(...args);
|
||||||
|
|
||||||
this._pickWorkspace = false;
|
this._pickWorkspace = false;
|
||||||
this._pickWindow = false;
|
this._pickWindow = false;
|
||||||
@@ -160,8 +164,8 @@ class MyWorkspacesView extends WorkspacesView.WorkspacesView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onKeyPress(s, o) {
|
_onKeyPress(s, o) {
|
||||||
let { viewSelector } = Main.overview;
|
const { ControlsState } = OverviewControls;
|
||||||
if (viewSelector._activePage !== viewSelector._workspacesPage)
|
if (this._overviewAdjustment.value !== ControlsState.WINDOW_PICKER)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
let workspaceManager = global.workspace_manager;
|
let workspaceManager = global.workspace_manager;
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ const WORKSPACE_KEY = 'workspace-names';
|
|||||||
const TOOLTIP_OFFSET = 6;
|
const TOOLTIP_OFFSET = 6;
|
||||||
const TOOLTIP_ANIMATION_TIME = 150;
|
const TOOLTIP_ANIMATION_TIME = 150;
|
||||||
|
|
||||||
|
const MAX_THUMBNAILS = 6;
|
||||||
|
|
||||||
let WindowPreview = GObject.registerClass(
|
let WindowPreview = GObject.registerClass(
|
||||||
class WindowPreview extends St.Button {
|
class WindowPreview extends St.Button {
|
||||||
_init(window) {
|
_init(window) {
|
||||||
@@ -288,14 +290,14 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
workspaceManager.connect_after('workspace-switched',
|
workspaceManager.connect_after('workspace-switched',
|
||||||
this._onWorkspaceSwitched.bind(this)),
|
this._onWorkspaceSwitched.bind(this)),
|
||||||
workspaceManager.connect('notify::layout-rows',
|
workspaceManager.connect('notify::layout-rows',
|
||||||
this._onWorkspaceOrientationChanged.bind(this)),
|
this._updateThumbnailVisibility.bind(this)),
|
||||||
];
|
];
|
||||||
|
|
||||||
this.connect('scroll-event', this._onScrollEvent.bind(this));
|
this.connect('scroll-event', this._onScrollEvent.bind(this));
|
||||||
this._thumbnailsBox.connect('scroll-event', this._onScrollEvent.bind(this));
|
this._thumbnailsBox.connect('scroll-event', this._onScrollEvent.bind(this));
|
||||||
this._createWorkspacesSection();
|
this._createWorkspacesSection();
|
||||||
this._updateThumbnails();
|
this._updateThumbnails();
|
||||||
this._onWorkspaceOrientationChanged();
|
this._updateThumbnailVisibility();
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA });
|
this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA });
|
||||||
this._settingsChangedId = this._settings.connect(
|
this._settingsChangedId = this._settings.connect(
|
||||||
@@ -317,16 +319,19 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
super._onDestroy();
|
super._onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onWorkspaceOrientationChanged() {
|
_updateThumbnailVisibility() {
|
||||||
let vertical = global.workspace_manager.layout_rows === -1;
|
const { workspaceManager } = global;
|
||||||
this.reactive = vertical;
|
const vertical = workspaceManager.layout_rows === -1;
|
||||||
|
const useMenu =
|
||||||
|
vertical || workspaceManager.n_workspaces > MAX_THUMBNAILS;
|
||||||
|
this.reactive = useMenu;
|
||||||
|
|
||||||
this._statusLabel.visible = vertical;
|
this._statusLabel.visible = useMenu;
|
||||||
this._thumbnailsBox.visible = !vertical;
|
this._thumbnailsBox.visible = !useMenu;
|
||||||
|
|
||||||
// Disable offscreen-redirect when showing the workspace switcher
|
// Disable offscreen-redirect when showing the workspace switcher
|
||||||
// so that clip-to-allocation works
|
// so that clip-to-allocation works
|
||||||
Main.panel.set_offscreen_redirect(vertical
|
Main.panel.set_offscreen_redirect(useMenu
|
||||||
? Clutter.OffscreenRedirect.ALWAYS
|
? Clutter.OffscreenRedirect.ALWAYS
|
||||||
: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
|
: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
|
||||||
}
|
}
|
||||||
@@ -343,6 +348,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
|||||||
_nWorkspacesChanged() {
|
_nWorkspacesChanged() {
|
||||||
this._createWorkspacesSection();
|
this._createWorkspacesSection();
|
||||||
this._updateThumbnails();
|
this._updateThumbnails();
|
||||||
|
this._updateThumbnailVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateMenuOrnament() {
|
_updateMenuOrnament() {
|
||||||
|
|||||||
@@ -1,40 +1,28 @@
|
|||||||
.panel-workspace-indicator {
|
.panel-workspace-indicator {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-workspace-indicator-box {
|
.panel-workspace-indicator-box {
|
||||||
padding: 2px 0;
|
padding: 4px 0;
|
||||||
|
spacing: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-workspace-indicator-box .workspace {
|
.panel-workspace-indicator-box .workspace {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
border: 2px solid #000;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-workspace-indicator,
|
|
||||||
.panel-workspace-indicator-box .workspace {
|
|
||||||
border: 1px solid #cccccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-workspace-indicator,
|
|
||||||
.panel-workspace-indicator-box .workspace.active {
|
.panel-workspace-indicator-box .workspace.active {
|
||||||
background-color: rgba(200, 200, 200, .5);
|
border-color: #fff;
|
||||||
}
|
|
||||||
|
|
||||||
.panel-workspace-indicator-box .workspace {
|
|
||||||
background-color: rgba(200, 200, 200, .3);
|
|
||||||
border-left-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-workspace-indicator-box .workspace:first-child {
|
|
||||||
border-left-width: 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspace-indicator-window-preview {
|
.workspace-indicator-window-preview {
|
||||||
background-color: #252525;
|
background-color: #bebebe;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #828282;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspace-indicator-window-preview.active {
|
.workspace-indicator-window-preview.active {
|
||||||
background-color: #353535;
|
background-color: #d4d4d4;
|
||||||
border: 2px solid #ccc;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
project('gnome-shell-extensions',
|
project('gnome-shell-extensions',
|
||||||
version: '40.beta',
|
version: '40.0',
|
||||||
meson_version: '>= 0.44.0',
|
meson_version: '>= 0.44.0',
|
||||||
license: 'GPL2+'
|
license: 'GPL2+'
|
||||||
)
|
)
|
||||||
|
|||||||
34
po/fi.po
34
po/fi.po
@@ -12,20 +12,20 @@ msgstr ""
|
|||||||
"Project-Id-Version: gnome-shell-extensions\n"
|
"Project-Id-Version: gnome-shell-extensions\n"
|
||||||
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/"
|
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/"
|
||||||
"issues\n"
|
"issues\n"
|
||||||
"POT-Creation-Date: 2020-05-28 00:55+0000\n"
|
"POT-Creation-Date: 2020-10-17 20:14+0000\n"
|
||||||
"PO-Revision-Date: 2020-08-16 18:17+0300\n"
|
"PO-Revision-Date: 2021-03-15 21:32+0200\n"
|
||||||
"Last-Translator: Jiri Grönroos <jiri.gronroos+l10n@iki.fi>\n"
|
"Last-Translator: JR-Fi <starman@starman.fi>\n"
|
||||||
"Language-Team: suomi <lokalisointi-lista@googlegroups.com>\n"
|
"Language-Team: suomi <lokalisointi-lista@googlegroups.com>\n"
|
||||||
"Language: fi\n"
|
"Language: fi\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.4.1\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
"X-Project-Style: gnome\n"
|
"X-Project-Style: gnome\n"
|
||||||
"X-POT-Import-Date: 2012-03-05 15:06:12+0000\n"
|
"X-POT-Import-Date: 2012-03-05 15:06:12+0000\n"
|
||||||
|
|
||||||
#: data/gnome-classic.desktop.in:3 data/gnome-classic.session.desktop.in:3
|
#: data/gnome-classic.desktop.in:3
|
||||||
msgid "GNOME Classic"
|
msgid "GNOME Classic"
|
||||||
msgstr "Perinteinen Gnome"
|
msgstr "Perinteinen Gnome"
|
||||||
|
|
||||||
@@ -50,6 +50,8 @@ msgid ""
|
|||||||
"A list of strings, each containing an application id (desktop file name), "
|
"A list of strings, each containing an application id (desktop file name), "
|
||||||
"followed by a colon and the workspace number"
|
"followed by a colon and the workspace number"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Lista merkkijonoja, jossa jokainen on ohjelman tunnus (työpöydän "
|
||||||
|
"tiedostonimi), jota seuraa kaksoispiste ja työtilan numero"
|
||||||
|
|
||||||
#: extensions/auto-move-windows/prefs.js:35
|
#: extensions/auto-move-windows/prefs.js:35
|
||||||
msgid "Workspace Rules"
|
msgid "Workspace Rules"
|
||||||
@@ -84,6 +86,9 @@ msgid ""
|
|||||||
"aspect ratio, and consolidating them further to reduce the bounding box. "
|
"aspect ratio, and consolidating them further to reduce the bounding box. "
|
||||||
"This setting applies only with the natural placement strategy."
|
"This setting applies only with the natural placement strategy."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Yritä käyttää enemmän näyttötilaa laittamalla ikkunoiden pikkukuvat "
|
||||||
|
"huomioiden näyttösuhteen ja lähentämällä niitä vähentämällä rajaavaa "
|
||||||
|
"laatikkoa. Tämä asetus toimii vain luonnollisen asettelutavan kanssa."
|
||||||
|
|
||||||
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
|
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
|
||||||
msgid "Place window captions on top"
|
msgid "Place window captions on top"
|
||||||
@@ -127,15 +132,14 @@ msgstr "Koti"
|
|||||||
msgid "Browse Network"
|
msgid "Browse Network"
|
||||||
msgstr "Selaa verkkoa"
|
msgstr "Selaa verkkoa"
|
||||||
|
|
||||||
|
# Konteksti muutui hieman, kun tälle ilmaantui pari, jossa suunta on taaksepäin
|
||||||
#: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:7
|
#: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:7
|
||||||
msgid "Cycle Screenshot Sizes"
|
msgid "Cycle Screenshot Sizes"
|
||||||
msgstr "Vaihtele kuvakaappausten kokojen välillä"
|
msgstr "Vaihda kuvakaappausten kokojen välillä"
|
||||||
|
|
||||||
#: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:11
|
#: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:11
|
||||||
#, fuzzy
|
|
||||||
#| msgid "Cycle Screenshot Sizes"
|
|
||||||
msgid "Cycle Screenshot Sizes Backward"
|
msgid "Cycle Screenshot Sizes Backward"
|
||||||
msgstr "Vaihtele kuvakaappausten kokojen välillä"
|
msgstr "Vaihda kuvakaappausten kokojen välillä taaksepäin"
|
||||||
|
|
||||||
#: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:5
|
#: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:5
|
||||||
msgid "Theme name"
|
msgid "Theme name"
|
||||||
@@ -165,27 +169,27 @@ msgstr "Palauta suurennus"
|
|||||||
msgid "Maximize"
|
msgid "Maximize"
|
||||||
msgstr "Suurenna"
|
msgstr "Suurenna"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:428
|
#: extensions/window-list/extension.js:432
|
||||||
msgid "Minimize all"
|
msgid "Minimize all"
|
||||||
msgstr "Pienennä kaikki"
|
msgstr "Pienennä kaikki"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:434
|
#: extensions/window-list/extension.js:438
|
||||||
msgid "Unminimize all"
|
msgid "Unminimize all"
|
||||||
msgstr "Palauta kaikkien koko"
|
msgstr "Palauta kaikkien koko"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:440
|
#: extensions/window-list/extension.js:444
|
||||||
msgid "Maximize all"
|
msgid "Maximize all"
|
||||||
msgstr "Suurenna kaikki"
|
msgstr "Suurenna kaikki"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:448
|
#: extensions/window-list/extension.js:452
|
||||||
msgid "Unmaximize all"
|
msgid "Unmaximize all"
|
||||||
msgstr "Palauta kaikkien koko"
|
msgstr "Palauta kaikkien koko"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:456
|
#: extensions/window-list/extension.js:460
|
||||||
msgid "Close all"
|
msgid "Close all"
|
||||||
msgstr "Sulje kaikki"
|
msgstr "Sulje kaikki"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:734
|
#: extensions/window-list/extension.js:738
|
||||||
msgid "Window List"
|
msgid "Window List"
|
||||||
msgstr "Ikkunaluettelo"
|
msgstr "Ikkunaluettelo"
|
||||||
|
|
||||||
|
|||||||
47
po/gl.po
47
po/gl.po
@@ -1,29 +1,29 @@
|
|||||||
# Galician translation for gnome-shell-extensions.
|
# Galician translation for gnome-shell-extensions.
|
||||||
# Copyright (C) 2011 gnome-shell-extensions's COPYRIGHT HOLDER
|
# Copyright (C) 2011 gnome-shell-extensions's COPYRIGHT HOLDER
|
||||||
# This file is distributed under the same license as the gnome-shell-extensions package.
|
# This file is distributed under the same license as the gnome-shell-extensions package.
|
||||||
# Fran Diéguez <frandieguez@gnome.org>, 2011.
|
|
||||||
# Fran Dieguez <frandieguez@gnome.org>, 2011-2020.
|
|
||||||
#
|
#
|
||||||
|
# Fran Diéguez <frandieguez@gnome.org>, 2011.
|
||||||
|
# Fran Dieguez <frandieguez@gnome.org>, 2011-2020, 2021.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: gnome-shell-extensions master\n"
|
"Project-Id-Version: gnome-shell-extensions master\n"
|
||||||
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/"
|
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/is"
|
||||||
"issues\n"
|
"sues\n"
|
||||||
"POT-Creation-Date: 2020-05-28 00:55+0000\n"
|
"POT-Creation-Date: 2020-10-17 20:14+0000\n"
|
||||||
"PO-Revision-Date: 2020-08-13 01:02+0200\n"
|
"PO-Revision-Date: 2021-02-24 20:41+0100\n"
|
||||||
"Last-Translator: Fran Dieguez <frandieguez@gnome.org>\n"
|
"Last-Translator: Fran Diéguez <frandieguez@gnome.org>\n"
|
||||||
"Language-Team: Galician <proxecto@trasno.gal>\n"
|
"Language-Team: Proxecto Trasno <proxecto@trasno.gal>\n"
|
||||||
"Language: gl\n"
|
"Language: gl\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||||
"X-Generator: Gtranslator 3.36.0\n"
|
"X-Generator: Gtranslator 3.38.0\n"
|
||||||
"X-Project-Style: gnome\n"
|
"X-Project-Style: gnome\n"
|
||||||
|
|
||||||
#: data/gnome-classic.desktop.in:3 data/gnome-classic.session.desktop.in:3
|
#: data/gnome-classic.desktop.in:3
|
||||||
msgid "GNOME Classic"
|
msgid "GNOME Classic"
|
||||||
msgstr "GNOME clasico"
|
msgstr "GNOME clásico"
|
||||||
|
|
||||||
#: data/gnome-classic.desktop.in:4
|
#: data/gnome-classic.desktop.in:4
|
||||||
msgid "This session logs you into GNOME Classic"
|
msgid "This session logs you into GNOME Classic"
|
||||||
@@ -50,7 +50,6 @@ msgstr ""
|
|||||||
"de ficheiro desktop), seguido por unha coma e o número do espazo de traballo"
|
"de ficheiro desktop), seguido por unha coma e o número do espazo de traballo"
|
||||||
|
|
||||||
#: extensions/auto-move-windows/prefs.js:35
|
#: extensions/auto-move-windows/prefs.js:35
|
||||||
#| msgid "Workspace Names"
|
|
||||||
msgid "Workspace Rules"
|
msgid "Workspace Rules"
|
||||||
msgstr "Regras da área de traballo"
|
msgstr "Regras da área de traballo"
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@ msgstr "Abrir ficheiros"
|
|||||||
|
|
||||||
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:5
|
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:5
|
||||||
msgid "Use more screen for windows"
|
msgid "Use more screen for windows"
|
||||||
msgstr "Usar máis pantalla para as xanelas"
|
msgstr "Usar mais pantalla para as xanelas"
|
||||||
|
|
||||||
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:6
|
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:6
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -83,13 +82,14 @@ msgid ""
|
|||||||
"aspect ratio, and consolidating them further to reduce the bounding box. "
|
"aspect ratio, and consolidating them further to reduce the bounding box. "
|
||||||
"This setting applies only with the natural placement strategy."
|
"This setting applies only with the natural placement strategy."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Tente usar máis pantalla para dispor as miniaturas das xanelas adaptándose á "
|
"Tente usar mais pantalla para dispor as miniaturas das xanelas adaptándose"
|
||||||
"taxa de aspecto da pantalla e consolidalas para reducir a caixa saltante. "
|
" á "
|
||||||
"Esta configuración aplícase só para a estratexia de disposición natural."
|
"taxa de aspecto da pantalla e consolidalas para reducir a caixa envolvente. "
|
||||||
|
"Esta configuración aplícase só para a estratexia de disposición natural."
|
||||||
|
|
||||||
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
|
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
|
||||||
msgid "Place window captions on top"
|
msgid "Place window captions on top"
|
||||||
msgstr "Pór a xanela sempre na parte superior"
|
msgstr "Por a xanela sempre na parte superior"
|
||||||
|
|
||||||
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:12
|
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:12
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -165,27 +165,27 @@ msgstr "Restaurar"
|
|||||||
msgid "Maximize"
|
msgid "Maximize"
|
||||||
msgstr "Maximizar"
|
msgstr "Maximizar"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:428
|
#: extensions/window-list/extension.js:432
|
||||||
msgid "Minimize all"
|
msgid "Minimize all"
|
||||||
msgstr "Minimizar todo"
|
msgstr "Minimizar todo"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:434
|
#: extensions/window-list/extension.js:438
|
||||||
msgid "Unminimize all"
|
msgid "Unminimize all"
|
||||||
msgstr "Restaurar todo"
|
msgstr "Restaurar todo"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:440
|
#: extensions/window-list/extension.js:444
|
||||||
msgid "Maximize all"
|
msgid "Maximize all"
|
||||||
msgstr "Maximizar todo"
|
msgstr "Maximizar todo"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:448
|
#: extensions/window-list/extension.js:452
|
||||||
msgid "Unmaximize all"
|
msgid "Unmaximize all"
|
||||||
msgstr "Restaurar todo"
|
msgstr "Restaurar todo"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:456
|
#: extensions/window-list/extension.js:460
|
||||||
msgid "Close all"
|
msgid "Close all"
|
||||||
msgstr "Pechar todo"
|
msgstr "Pechar todo"
|
||||||
|
|
||||||
#: extensions/window-list/extension.js:734
|
#: extensions/window-list/extension.js:738
|
||||||
msgid "Window List"
|
msgid "Window List"
|
||||||
msgstr "Lista de xanelas"
|
msgstr "Lista de xanelas"
|
||||||
|
|
||||||
@@ -259,7 +259,6 @@ msgid "Workspace %d"
|
|||||||
msgstr "Espazos de traballo %d"
|
msgstr "Espazos de traballo %d"
|
||||||
|
|
||||||
#: extensions/workspace-indicator/prefs.js:218
|
#: extensions/workspace-indicator/prefs.js:218
|
||||||
#| msgid "Workspace"
|
|
||||||
msgid "Add Workspace"
|
msgid "Add Workspace"
|
||||||
msgstr "Engadir área de traballo"
|
msgstr "Engadir área de traballo"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user