@@ -8,6 +8,7 @@ import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import St from 'gi://St';
|
||||
import Clutter from 'gi://Clutter';
|
||||
import Pango from 'gi://Pango';
|
||||
import { installShellService } from './shell-dbus.js';
|
||||
import { ConversationView, JarvisOsd, ComputerUseChrome, SessionPanel, coerceText, safeText, shortError } from './ui.js';
|
||||
|
||||
@@ -71,10 +72,12 @@ export default class JarvisExtension extends Extension {
|
||||
const file = Gio.File.new_for_path(`${this.path}/brand/icons/jarvis-mark.svg`);
|
||||
if (file.query_exists(null)) this._mark.gicon = new Gio.FileIcon({ file });
|
||||
} catch (error) { log(`Jarvis mark unavailable: ${error.message}`); }
|
||||
this._mark.set_icon_size(16);
|
||||
this._glyph = new St.Label({ text: 'Jarvis', style_class: 'jarvis-panel-glyph', y_align: Clutter.ActorAlign.CENTER }); this._glyph.accessible_name = 'Jarvis idle';
|
||||
if (this._glyph.clutter_text) this._glyph.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||
this._panelBox.add_child(this._mark);
|
||||
this._panelBox.add_child(this._glyph);
|
||||
this.osd.attach(this._panelBox);
|
||||
this.osd.attach(this._panelBox, this._glyph);
|
||||
this._indicator.add_child(this._panelBox);
|
||||
Main.panel.addToStatusArea('jarvis-qvac', this._indicator, 0, 'right');
|
||||
this._mountPopup();
|
||||
|
||||
Reference in New Issue
Block a user