Skip to content

Commit

Permalink
extension/panelicon: use symbolic icon
Browse files Browse the repository at this point in the history
Fixes #323
  • Loading branch information
amezin committed Mar 10, 2024
1 parent f1a0917 commit 9ec1780
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ddterm/shell/panelicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const PanelIconBase = GObject.registerClass({
_init(dontCreateMenu, gettext_context) {
super._init(null, gettext_context.gettext('ddterm'), dontCreateMenu);

this.name = 'ddterm-panel-icon';

this.add_child(new St.Icon({
icon_name: 'utilities-terminal',
style_class: 'system-status-icon',
Expand Down
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ schema_dir = datadir / 'glib-2.0' / 'schemas'
applications_dir = datadir / 'applications'
dbus_service_dir = datadir / 'dbus-1' / 'services'

pack = [
fs.copyfile('LICENSE'),
fs.copyfile(
'stylesheet.css',
install: true,
install_dir: extension_dir
)
]

built_js = [
fs.copyfile(
get_option('esm') ? 'extension.js' : 'extension.legacy.js',
Expand All @@ -39,8 +48,6 @@ built_js = [
)
]

pack = [fs.copyfile('LICENSE')]

metadata = configuration_data()
metadata.set('version', meson.project_version())
metadata.set_quoted('uuid', uuid)
Expand Down
3 changes: 3 additions & 0 deletions stylesheet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#ddterm-panel-icon {
-st-icon-style: symbolic;
}

0 comments on commit 9ec1780

Please sign in to comment.