mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
This commit is contained in:
parent
f81f16b47b
commit
d10107684d
5 changed files with 37 additions and 27 deletions
|
|
@ -10,7 +10,8 @@ impl<'t> DslNs<'t, Arc<str>> for App {
|
|||
|
||||
impl<'t> DslNs<'t, bool> for App {
|
||||
dsl_words!(|app| -> bool {
|
||||
":focused/editor" => app.project.editor.is_some(),
|
||||
":mode/editor" => app.project.editor.is_some(),
|
||||
|
||||
":focused/dialog" => !matches!(app.dialog, Dialog::None),
|
||||
":focused/message" => matches!(app.dialog, Dialog::Message(..)),
|
||||
":focused/add_device" => matches!(app.dialog, Dialog::Device(..)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue