summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2016-10-29 13:27:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-10-11 13:13:30 +0000
commit1a9504be1a0184a27b8fe0ff9a4473985047d37e (patch)
tree16c8709f5393dc264f117962f68f07744a1afb51
parentInitial commit. (diff)
downloadgnome-shell-extension-remove-rounded-corners-1a9504be1a0184a27b8fe0ff9a4473985047d37e.zip
gnome-shell-extension-remove-rounded-corners-1a9504be1a0184a27b8fe0ff9a4473985047d37e.tar.xz
Adding upstream version 5.upstream/5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--extension.js27
-rw-r--r--metadata.json16
2 files changed, 43 insertions, 0 deletions
diff --git a/extension.js b/extension.js
new file mode 100644
index 0000000..c130b93
--- /dev/null
+++ b/extension.js
@@ -0,0 +1,27 @@
+// remove rounded corners Gnome Shell Extension
+// it is still cool to be square ;)
+
+const Main = imports.ui.main;
+
+
+function init() {
+}
+
+function enable() {
+ removeRoundedCorners();
+}
+
+function disable() {
+ restoreRoundedCorners();
+}
+
+function removeRoundedCorners() {
+ Main.panel._leftCorner.actor.set_style("-panel-corner-radius: 0px");
+ Main.panel._rightCorner.actor.set_style("-panel-corner-radius: 0px");
+}
+
+function restoreRoundedCorners() {
+ Main.panel._leftCorner.actor.set_style("-panel-corner-radius: 10px");
+ Main.panel._rightCorner.actor.set_style("-panel-corner-radius: 10px");
+}
+
diff --git a/metadata.json b/metadata.json
new file mode 100644
index 0000000..5e31d52
--- /dev/null
+++ b/metadata.json
@@ -0,0 +1,16 @@
+{
+ "_generated": "Generated by SweetTooth, do not edit",
+ "description": "Remove rounded corners from the top panel.",
+ "extension-id": "remove-rounded-corners-panel",
+ "gettext-domain": "markbokil.com-extensions",
+ "name": "Remove Rounded Corners",
+ "original-authors": "Mark Bokil",
+ "shell-version": [
+ "3.4",
+ "3.6",
+ "3.8"
+ ],
+ "url": "http://markbokil.com/downloads/extensions/",
+ "uuid": "remove-rounded-corners@markbokil.com",
+ "version": 5
+} \ No newline at end of file