Skip to content

Commit

Permalink
⭐️ Add new GNOME versions support
Browse files Browse the repository at this point in the history
Let it snow!
  • Loading branch information
ExposedCat authored Nov 18, 2022
2 parents d54419f + 9afda6c commit 869cfef
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
snowy.zip
snowy@exposedcat.shell-extension.zip
schemas/gschemas.compiled
3 changes: 2 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const { GLib } = imports.gi
const Utils = imports.misc.extensionUtils
const Extension = Utils.getCurrentExtension()
const { manager: Manager, config: Config } = Extension.imports.js
const { Config } = Extension.imports.js.config
const { Manager } = Extension.imports.js.manager

let manager = null

Expand Down
4 changes: 3 additions & 1 deletion js/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const GObject = imports.gi.GObject

const Utils = imports.misc.extensionUtils
const Extension = Utils.getCurrentExtension()

class Config {
var Config = class Config {
constructor(id) {
this.data = Utils.getSettings(id)
}
Expand Down
2 changes: 1 addition & 1 deletion js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Extension = Utils.getCurrentExtension()
const { Snowflake } = Extension.imports.js.snowflake
const { random, setInterval } = Extension.imports.js.utils

class Manager {
var Manager = class Manager {
constructor() {
this.timerId = null
this.snowing = false
Expand Down
2 changes: 1 addition & 1 deletion js/snowflake.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Extension = Utils.getCurrentExtension()

const { random } = Extension.imports.js.utils

class Snowflake {
var Snowflake = class Snowflake {
constructor(config) {
const icons = config.string('flake-icons').split(',')
const iconNumber = random(0, icons.length - 1)
Expand Down
4 changes: 3 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"description": "Make you festive mood with falling snow on your GNOME DE system",
"name": "Snowy",
"shell-version": [
"43",
"42",
"41",
"40",
"3"
],
"url": "https://github.com/ExposedCat/snowy",
"uuid": "snowy@exposedcat",
"version": 3.1
}
}

0 comments on commit 869cfef

Please sign in to comment.