1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 19:21:03 +02:00

fix: add sensible class names for icon labels

BREAKING CHANGE: Where both textual and image icons are supported, CSS classes have changed to better reflect their targets. `.icon` has changed to `.icon-box` and `.icon` now targets the underlying element. `.label` has been changed to `.icon.text-icon`. This affects icons on the **music**, **workspaces**, and **clipboard** modules.

Resolves #185.
This commit is contained in:
Jake Stanger 2023-06-12 22:24:51 +01:00
parent cbba2bc614
commit e11177fea3
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 5 additions and 2 deletions

View file

@ -454,7 +454,7 @@ impl IconLabel {
let icon = new_icon_label(icon_input, icon_theme, 24);
let label = Label::new(label);
add_class(&icon, "icon");
add_class(&icon, "icon-box");
add_class(&label, "label");
container.add(&icon);