mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 02:31:04 +02:00
feat(launcher): add popup css selectors
This commit is contained in:
parent
5523e9af46
commit
1dd0a9e52f
1 changed files with 2 additions and 0 deletions
|
@ -420,6 +420,7 @@ impl Module<gtk::Box> for LauncherModule {
|
|||
|
||||
let container = gtk::Box::builder()
|
||||
.orientation(Orientation::Vertical)
|
||||
.name("popup-launcher")
|
||||
.build();
|
||||
|
||||
let placeholder = Button::with_label("PLACEHOLDER");
|
||||
|
@ -505,6 +506,7 @@ impl Module<gtk::Box> for LauncherModule {
|
|||
// add app's buttons
|
||||
if let Some(buttons) = buttons.get(&app_id) {
|
||||
for button in buttons {
|
||||
button.style_context().add_class("popup-item");
|
||||
container.add(button);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue