feat(launcher): add popup css selectors

This commit is contained in:
Jake Stanger 2022-10-14 23:49:11 +01:00
parent 5523e9af46
commit 1dd0a9e52f
No known key found for this signature in database
GPG Key ID: C51FC8F9CB0BEA61

View File

@ -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);
}