theme: change

This commit is contained in:
Alastair Poole 2021-03-28 11:04:40 +01:00
parent 0fa5d7c75d
commit ae61e28b1b
5 changed files with 17 additions and 0 deletions

BIN
data/sounds/badjoke.wav Normal file

Binary file not shown.

BIN
data/sounds/cockerel.wav Normal file

Binary file not shown.

View File

@ -25,6 +25,14 @@ group { \
} }
collections { collections {
sounds
{
sample
{
name: "joke" COMP;
source: "badjoke.wav";
}
}
group group
{ {
name: "cpu"; name: "cpu";
@ -151,6 +159,12 @@ collections {
transition: SINUSOIDAL 0.8; transition: SINUSOIDAL 0.8;
target: "evisum/indicator-clip"; target: "evisum/indicator-clip";
} }
program
{
signal: "fields,change";
source: "evisum/indicator";
action: PLAY_SAMPLE "joke" 1.0 INPUT;
}
} }
} }
} }

View File

@ -3,6 +3,7 @@ edje_cmd = find_program('edje_cc')
cmd = [ edje_cmd, cmd = [ edje_cmd,
'-id', join_paths(meson.source_root(), 'data', 'images'), '-id', join_paths(meson.source_root(), 'data', 'images'),
'-id', join_paths(meson.source_root(), 'data', 'icons'), '-id', join_paths(meson.source_root(), 'data', 'icons'),
'-sd', join_paths(meson.source_root(), 'data', 'sounds'),
'@INPUT@', '@OUTPUT@' '@INPUT@', '@OUTPUT@'
] ]

View File

@ -1165,6 +1165,8 @@ _btn_clicked_state_save(Data *pd, Evas_Object *btn)
evas_object_del(pd->fields_menu); evas_object_del(pd->fields_menu);
pd->fields_menu = NULL; pd->fields_menu = NULL;
// Postpone field changes until the user dismisses the popup. // Postpone field changes until the user dismisses the popup.
if (evisum_ui_effects_enabled_get(pd->ui))
elm_object_signal_emit(pd->indicator, "fields,change", "evisum/indicator");
if (pd->fields_changed) if (pd->fields_changed)
_content_reset(pd); _content_reset(pd);
return; return;