Luncher theme: Allow preview size to be configurable.

This commit is contained in:
Stephen 'Okra' Houston 2017-06-09 14:20:29 -05:00
parent 3ec0233a28
commit f7d5b0dbe8
1 changed files with 14 additions and 2 deletions

View File

@ -456,6 +456,18 @@ group { name: "e/gadget/luncher/icon";
} }
group { name: "e/gadget/luncher/preview"; group { name: "e/gadget/luncher/preview";
script {
public message(Msg_Type:type, id, ...) {
if ((type == MSG_INT_SET) && (id == 1)) {
new size = getarg(2);
custom_state(PART:"icon", "default", 0.0);
set_state_val(PART:"icon", STATE_MIN, size, size);
set_state_val(PART:"icon", STATE_MAX, size, size);
set_state(PART:"icon", "custom", 0.0);
}
}
}
parts { parts {
part { name: "base"; type: RECT; part { name: "base"; type: RECT;
description { state: "default"; description { state: "default";