Review of "Custom Accent Color" version 1

Details Page Preview

Use any accent color, not just the presets. GNOME Shell and GTK4/libadwaita apps derive every accent shade (hover, selection, focus, light and dark variants) from your color. GTK4 apps are recolored through a marked block in ~/.config/gtk-4.0/gtk.css. Optionally keeps Flatpak GTK3 apps themed by copying the current system GTK theme into ~/.themes. Both are removed when the extension is disabled.

Extension Homepage
https://github.com/Kelvinlby/gnome-custom-accent

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 3

Shexli found 3 issues that may need reviewer attention.

EGO-X-004 warning

extensions should avoid synchronous file IO in shell code

Shell code should avoid synchronous file IO APIs like `GLib.file_get_contents()` and `Gio.File.load_contents()`.

File Operations

  • accent.js:89
    file.load_contents(null)
  • extension.js:122
    this._sourceFile.load_contents(null)

EGO-A-004 warning

extension files should not contain excessive ungated console logging

File contains 6 ungated console.log/warn/error calls (threshold: 5).

No excessive logging

  • extension.js:125
    console.error(`[${this.uuid}] cannot read ${this._sourceFile.get_uri()}: ${e.message}`)
  • extension.js:164
    console.error(`[${this.uuid}] could not write gtk.css: ${e.message}`)
  • extension.js:77
    console.warn(`[${this.uuid}] could not clean gtk.css: ${e.message}`)
  • extension.js:82
    console.warn(`[${this.uuid}] could not remove theme copies: ${e.message}`)
  • extension.js:149
    console.warn(`[${this.uuid}] ${e.message}`)
  • extension.js:181
    console.warn(`[${this.uuid}] could not copy GTK theme to ~/.themes: ${e.message}`)

EGO-M-008 warning

extensions using unlock-dialog must document it in disable() comments

Extensions using `unlock-dialog` should document the reason in `disable()` comments.

Session Modes

  • extension.js:57
        disable() {
            this._themeContext.disconnect(this._themeChangedId);
            this._settings.disconnect(this._settingsChangedId);
            this._settings.disconnect(this._flatpakSettingId);
            this._interface.disconnect(this._gtkThemeChangedId);
            this._interface = null;
            thi

All Versions

Version Status
1 Unreviewed