Skip to content

extension: add support for menu button label#120

Open
Prarambha369 wants to merge 1 commit into
Aryan20:mainfrom
Prarambha369:main
Open

extension: add support for menu button label#120
Prarambha369 wants to merge 1 commit into
Aryan20:mainfrom
Prarambha369:main

Conversation

@Prarambha369
Copy link
Copy Markdown

feat: add support for menu button label

Added the ability to show a customizable text label next to the menu button icon in the top panel.

  • New toggle: "Show Button Label"
  • New setting: "Button Label Text"
  • Properly integrated with existing settings and UI

Closes #83

Copilot AI review requested due to automatic review settings May 5, 2026 16:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configurable text label next to the Logo Menu button icon in the GNOME top panel, controlled via new GSettings keys and surfaced in the Libadwaita preferences UI (addresses #83).

Changes:

  • Introduces new GSettings keys to toggle the label and set its text.
  • Updates the preferences UI to expose the new toggle + text entry.
  • Updates the panel button implementation and CSS to render the label beside the icon.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
stylesheet.css Adds a .menu-button-label class to space the label from the icon.
schemas/org.gnome.shell.extensions.logo-menu.gschema.xml Adds settings for enabling the label and configuring its text.
PrefsLib/adw.js Adds new preferences rows (switch + entry) bound to the new settings keys.
extension.js Renders a St.Label next to the menu icon and updates it on settings changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread PrefsLib/adw.js
Comment on lines +216 to +220
// Show Button Label toggle
const showLabelRow = new Adw.SwitchRow({
title: _('Show Button Label'),
subtitle: _('Display a text label next to the icon in the top panel.'),
});
Comment thread PrefsLib/adw.js
title: _('Button Label Text'),
});
this._settings.bind('menu-button-label-text', labelTextRow,
'text', Gio.SettingsBindFlags.DEFAULT);
Comment thread extension.js
Comment on lines +39 to +47
this.label = new St.Label({
text: '',
y_align: Clutter.ActorAlign.CENTER,
style_class: 'menu-button-label',
});

this._buttonBox = new St.BoxLayout({
style_class: 'panel-status-menu-box',
});

<key type="s" name="menu-button-label-text">
<default>""</default>
<summary>Menu button label text</summary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Button Label

2 participants