Skip to content

Commit

Permalink
Updated DesktopCube@yare to work with smart-panel@mohammad-sn
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux committed Nov 23, 2024
1 parent 8358ca8 commit fd651c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions DesktopCube@yare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.1

* Adde ability to work correctly with the smart-panel extension.

## 2.0.0

* Added ability to use Cube effect when changing the workspace via the "Workspace Switcher" applet
Expand Down
4 changes: 4 additions & 0 deletions DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const Settings = imports.ui.settings;
const Util = imports.misc.util; // Needed for spawnCommandLine()
const SignalManager = imports.misc.signalManager;

const UUID = "DesktopCube@yare";

let enabled;
let settings;
let signalManager;
Expand All @@ -30,6 +32,7 @@ const isFinalized = function(obj) {
}

const setPanelsOpacity = function(opacity) {
//~ global.log("setPanelsOpacity: "+opacity);
let panels = Main.getPanels();
for (let i = 0; i < panels.length; i++) {
if (!panels[i]) continue;
Expand Down Expand Up @@ -64,6 +67,7 @@ Cube.prototype = {
this.destroy_requested = false;
this.transitions = []; // An array of Meta.MotionDirection values for each face transiation that is queued up
this.firstRotate = true;
settings = new CubeSettings(UUID);
this.pullaway = (100-settings.pullawayPercent)/100/2;

if (faces === undefined)
Expand Down
3 changes: 2 additions & 1 deletion DesktopCube@yare/files/DesktopCube@yare/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"uuid": "DesktopCube@yare",
"name": "Desktop Cube",
"description": "Compiz Cube-like animation for workspace switching",
"url": "http://cinnamon-spices.linuxmint.com/"
"url": "http://cinnamon-spices.linuxmint.com/extensions/view/68",
"author": "klangman"
}

0 comments on commit fd651c1

Please sign in to comment.