Skip to content

Commit

Permalink
replace utf8 heart by hui:heart image
Browse files Browse the repository at this point in the history
  • Loading branch information
momentarylapse committed Dec 1, 2024
1 parent 1d3d769 commit b612e2d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
4 changes: 2 additions & 2 deletions gui/ModuleSelectionDialog.hui
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Dialog configurable-selection-dialog "Module" width=400 height=500 headerbar resizable closebutton=no borderwidth=0
Grid ? ""
ListView list "Group\\Name\\Favorite" format=mtt nobar
ListView list "Group\\Name\\Favorite" format=mti nobar
---|
Grid ? "" buttonbar
Button /cancel "Cancel"
---|
Button ok "Select" default
ToggleButton toggle-favorite "❤" "tooltip=Add to favorites or remove"
ToggleButton toggle-favorite "" image=heart "tooltip=Add to favorites or remove"
2 changes: 1 addition & 1 deletion gui/PluginConsole.hui
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Dialog plugin-console "Plugins" width=300 height=200
Grid favorite-grid ""
Label ? "" expandy
---|
Label favorite-label "❤" center width=40 height=40 disabled
Button favorite-label "" image=heart center width=40 height=40 disabled

2 changes: 1 addition & 1 deletion src/view/dialog/ModuleSelectorDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ModuleSelectorDialog::ModuleSelectorDialog(hui::Window* _parent, ModuleCategory
if (i > 0)
if (g == labels[i-1].group)
g = "";
auto ll = format("<b>%s</b>\\%s\\%s", g, l.name, session->plugin_manager->is_favorite(session, type, l.name) ? "\u2764" : "");
auto ll = format("<b>%s</b>\\%s\\%s", g, l.name, session->plugin_manager->is_favorite(session, type, l.name) ? "hui:heart" : "");
/*if (ugroups.num > 0) {
int r = ugroups.find(l.group);
add_child_string("list", r, ll);
Expand Down
25 changes: 11 additions & 14 deletions static/hui_resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4163,7 +4163,7 @@ Grid
2
ListView
list
format=mtt,nobar
format=mti,nobar
0
0
0
Expand All @@ -4187,7 +4187,7 @@ default
0
ToggleButton
toggle-favorite

image=heart
1
1
0
Expand Down Expand Up @@ -4453,31 +4453,31 @@ homogenousx,box,linked
5
ToggleButton
type-audio
margin=40,image=track-audio,flat,expandx,ignorefocus
image=track-audio,flat,big,expandx,ignorefocus
0
0
0
ToggleButton
type-midi
image=track-midi,flat,expandx,ignorefocus
image=track-midi,flat,big,expandx,ignorefocus
1
0
0
ToggleButton
type-metronome
image=track-time,flat,expandx,ignorefocus
image=track-time,flat,big,expandx,ignorefocus
2
0
0
ToggleButton
type-master
image=track-group,flat,expandx,ignorefocus
image=track-group,flat,big,expandx,ignorefocus
3
0
0
ToggleButton
type-preset
image=heart,flat,expandx,ignorefocus
image=heart,flat,big,expandx,ignorefocus
4
0
0
Expand Down Expand Up @@ -5103,9 +5103,9 @@ expandy
0
0
0
Label
Button
favorite-label
center,width=40,height=40,disabled
image=heart,center,width=40,height=40,disabled
0
1
0
Expand Down Expand Up @@ -9335,7 +9335,7 @@ default,image=hui:ok
# Language
English
# Number Of IDs
812
811
# Text
/bars-add
Add bars...
Expand Down Expand Up @@ -9935,7 +9935,7 @@ configurable-selection-dialog/ok
Select

configurable-selection-dialog/toggle-favorite

Add to favorites or remove
configurable_dialog/load_favorite

Expand Down Expand Up @@ -10948,9 +10948,6 @@ Pdf Export
plugin-console/add

add plugin
plugin-console/favorite-label

plugin-console/no-plugins-label
no plugins active

Expand Down

0 comments on commit b612e2d

Please sign in to comment.