Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update windows navigator.

  • Loading branch information...
commit 6b9fe0ebef96885a8ff176d8b602b4f0a81b2b81 1 parent 0e8f3cd
@manateelazycat manateelazycat authored
View
6 windows-navigator@linuxdeepin.com/extension.js
@@ -195,15 +195,15 @@ function enable() {
winInjections['_init'] = injectToFunction(Workspace.WindowOverlay.prototype, '_init', function(windowClone, parentActor) {
this._id = null;
- createdActors.push(this._text = new St.Label({ style_class: 'extension-windowsNavigator-window-tooltip' }));
+ createdActors.push(this._text = new St.Label({ style_class: 'extension-windowsNavigator-window-tooltip'}));
this._text.hide();
- parentActor.add_actor(this._text);
+ parentActor.add_actor(this._text, {align: St.Align.MIDDLE});
});
winInjections['updatePositions'] = injectToFunction(Workspace.WindowOverlay.prototype, 'updatePositions', function(cloneX, cloneY, cloneWidth, cloneHeight) {
let textX = cloneX - 2;
let textY = cloneY - 2;
- this._text.set_position(Math.floor(textX), Math.floor(textY));
+ this._text.set_position(Math.floor(textX) - 30, Math.floor(textY) - 10);
this._text.raise_top();
});
View
9 windows-navigator@linuxdeepin.com/stylesheet.css
@@ -1,6 +1,9 @@
.extension-windowsNavigator-window-tooltip {
+ /* background-image: url("background.png"); */
font-weight: bold;
- font-size: 4em;
- text-shadow: 0px 1px 0px 0px #e6e6e6;
- color: rgba(255,0,0,1.0);
+ font-size: 2.5em;
+ width: 54px;
+ height: 54px;
+ text-shadow: 1px 1px 1px 1px #DDDDDD;
+ color: rgba(255,255,255,1.0);
}
Please sign in to comment.
Something went wrong with that request. Please try again.