Skip to content

Commit

Permalink
GNOME 47 Port (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
chikobara authored Sep 26, 2024
1 parent 6a939eb commit 603fcf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"description": "A Net Speed extension With Loads of Customization. Fork of simplenetspeed\n\nFull CHANGELOG can be found on github releases page\n\nFeatures \n1. Clean UI \n2. Adjustable Refresh rate \n3. Preferences to manage extension \n4. Vertical Alignment Support \n5. Two Icon sets for Indicators \n\nFeature Highlights for Preferences \n1. Lock Mouse Actions option \n2. Advance Position options to pinpoint where to place the indicator on the Panel. \n3. Refresh time option by which you can change refresh rate value between 1.0 and 10.0 seconds. \n4. Option to show upload speed first \n5. Color Customizations for speed indicators \n6. Option to Hide when Disconnected \n7. Option to use shorter units like K/s instead of KB/s \n8. Limit Unit option and more... \n\nModes \n1. Total net speed in terms of bits per second \n2. Total net speed in terms of bytes per second \n3. Combined Up & down speed in terms of bits per second \n4. Combined Up & down speed in terms of bytes per second \n5. Total transferred data in terms of bytes (Right click to reset counter) \n\nMouse Events \n- Left click to change modes \n- Right click(in 1-4 modes): Toggle the visibility of total transfer data. \n- Right click(in 5th mode): Reset total transfer data. \n- Right Click(Four consecutive times): Toggle through horizontal/vertical alignment. \n- Middle click: Cycle through the font sizes.",
"name": "Net speed Simplified",
"shell-version": [
"45","46"
"45",
"46",
"47"
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "[email protected]",
Expand Down
9 changes: 4 additions & 5 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ class NssEntry {
}

export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences {
getPreferencesWidget() {
async getPreferencesWidget() {
settings = this.getSettings(schema)
window._settings = settings

fetchSettings()
await fetchSettings()

let frame = new Gtk.ScrolledWindow()
let label = new Gtk.Label({
Expand All @@ -264,7 +264,7 @@ export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences
margin_bottom: 15
})

resetBtn.connect("clicked", () => {
resetBtn.connect("clicked", async () => {
let strArray = ["customfont", "uscolor", "dscolor", "tscolor", "tdcolor"]
let intArray = ["wpos", "wposext", "mode", "fontmode", "chooseiconset", "textalign"]
let doubleArray = ["refreshtime", "minwidth"]
Expand All @@ -282,7 +282,7 @@ export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences
settings.set_boolean(boolArray[l], settings.get_default_value(boolArray[l]).unpack())
}
settings.set_boolean('restartextension', true)
fetchSettings()
await fetchSettings()
})

addIt(vbox, label)
Expand Down Expand Up @@ -358,7 +358,6 @@ export default class NetSpeedSimplifiedPreferences extends ExtensionPreferences
let hboxSysColr = newGtkBox()
new NssToggleBtn(hboxSysColr, "Use System Color Scheme", "systemcolr", "Enabling it will allow changing font color dynamically based on panel color")


// Upload Speed Color
let usColorButton = newGtkBox()
new NssColorBtn(usColorButton, "Upload Speed Color", "uscolor", "Select the upload speed color")
Expand Down

0 comments on commit 603fcf7

Please sign in to comment.