Skip to content

Commit

Permalink
Make symbolic icon white instead of black so it's visible in the menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandyer committed Mar 13, 2023
1 parent d86deb3 commit 7d16a9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@
become: yes
copy:
src: securedrop-symbolic.png
dest: "{{ tails_config_live_dotfiles }}/.local/share/icons/"
dest: "{{ tails_config_live_dotfiles }}/.local/share/gnome-shell/extensions/[email protected]/icons/"
owner: amnesia
group: amnesia

- name: Copy the symbolic icon used for the shell extension in the running system
become: yes
copy:
src: securedrop-symbolic.png
dest: "/home/amnesia/.local/share/icons/"
dest: "/home/amnesia/.local/share/gnome-shell/extensions/[email protected]/icons/"
owner: amnesia
group: amnesia

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

const GETTEXT_DOMAIN = 'securedrop';

const {Clutter, GObject, GLib, St } = imports.gi;
const {Clutter, GObject, GLib } = imports.gi;

const Util = imports.misc.util;
const ExtensionUtils = imports.misc.extensionUtils;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;

const St = imports.gi.St;
const CurrentExtension = imports.misc.extensionUtils.getCurrentExtension();
const Gio = imports.gi.Gio;

const source_interface_address = "{{ item.0.source_interface_address }}";
const journalist_interface_address = "{{ item.0.journalist_interface_address }}";
const app_server_hostname = "{{ item.0.app_hostname }}";
Expand All @@ -30,11 +34,9 @@ class Indicator extends PanelMenu.Button {
if (exit == 0) {
is_admin = true;
}

let icon = new St.Icon({
icon_name: 'securedrop-symbolic',
style_class: 'system-status-icon',
});

let gicon = Gio.icon_new_for_string(CurrentExtension.path + "/icons/securedrop-symbolic.png");
let icon = new St.Icon({ gicon });

let label = new St.Label({
text: 'SecureDrop',
Expand Down

0 comments on commit 7d16a9b

Please sign in to comment.