diff options
author | Dave Davenport <qball@gmpclient.org> | 2021-06-30 14:12:09 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2021-06-30 14:12:09 +0200 |
commit | 0c304524fb49e641d3da1a86a39f654cf162ca49 (patch) | |
tree | 20dfdac21d02b61d0bad2a992af5368b9f80b93e /themes | |
parent | c1cd4540a44b17409933148bb22e98db38a41306 (diff) |
[Icon|Button] Make action available on icon and use keyb name.
You can now bind a key-binding on mouse click to icons and buttons by setting
"action" property.
For example:
```css
icon-paste {
expand: false;
filename: "gtk-paste";
size: 24;
vertical-align: 0.5;
action: "kb-primary-paste";
}
```
Diffstat (limited to 'themes')
-rw-r--r-- | themes/fancy.rasi | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/themes/fancy.rasi b/themes/fancy.rasi index 6d1b8de2..1f6e9df8 100644 --- a/themes/fancy.rasi +++ b/themes/fancy.rasi @@ -44,7 +44,33 @@ window { y-offset: -15.5em; - children: [ inputbar, message, wrapper-mode-switcher, listview ]; + children: [ inputbar, message, wrapper-mode-switcher, listview , pagerbox ]; +} + + +pagerbox { + expand: false; + orientation: horizontal; + children: [ icon-left, pad, icon-right ]; +} + +pad { + expand: true; +} +icon-left { + expand: false; + filename: "go-previous"; + size: 24; + vertical-align: 0.5; + action: "kb-page-prev"; +} + +icon-right { + expand: false; + filename: "go-next"; + size: 24; + vertical-align: 0.5; + action: "kb-page-next"; } @@ -191,9 +217,23 @@ wrapper { border: 2px; border-radius: 5px; padding: 4px; - children: [ icon-k, entry ]; + children: [ icon-k, entry, icon-paste]; spacing: 0.5em; } +button-paste { + expand: false; + str: "gtk-paste"; + size: 24; + vertical-align: 0.5; + action: "kb-cancel"; +} +icon-paste { + expand: false; + filename: "gtk-paste"; + size: 24; + vertical-align: 0.5; + action: "kb-primary-paste"; +} icon-k { expand: false; filename: "input-keyboard"; |