passthru icon

This commit is contained in:
galister 2026-08-02 00:12:01 +09:00
parent b85077b559
commit 6edf144aee
4 changed files with 20 additions and 1 deletions

View File

@ -167,6 +167,16 @@
</Button>
</template>
<!-- mirror with a different icon -->
<template name="Passthru">
<Button macro="button_style" id="overlay_${idx}" tooltip_str="${name}" _context_name="${name}" _press_left="::ContextMenuOpen menu_mirror" _press_right="::OverlayToggle ${name}">
<sprite width="38" height="38" src_builtin="icons/landscape.svg" />
<div position="absolute" margin_top="5" margin_left="13">
<label text="${display}" size="20" weight="bold" parent_color="background" />
</div>
</Button>
</template>
<blueprint name="menu_handsfree">
<context_menu >
<cell translation="BAR.HANDSFREE.NONE" _press="::HandsfreeMode None" _press2="::ContextMenuClose" />

View File

@ -54,6 +54,14 @@
</div>
</Button>
</template>
<template name="Passthru">
<Button macro="button_style" id="overlay_${idx}" tooltip_str="${name}" _press="::OverlayToggle ${name}">
<sprite width="38" height="38" src_builtin="icons/landscape.svg" />
<div position="absolute" margin_top="5" margin_left="13">
<label text="${display}" size="20" weight="bold" parent_color="background" />
</div>
</Button>
</template>
<template name="App">
<Button macro="button_style" id="overlay_${idx}" tooltip_str="${name}" _press="::OverlayToggle ${name}">
<sprite width="38" height="38" src_ext="${icon}" />

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="white" d="m1.15 20l3.45-6.9q.25-.5.713-.8T6.35 12q.6 0 1.1.312t.725.888l.675 1.65q.05.15.225.137t.225-.162l2.15-7.175q.35-1.2 1.338-1.925T15.025 5q1.225 0 2.188.712t1.337 1.863L22.875 20zM6 10q-1.25 0-2.125-.888T3 7q0-1.25.875-2.125T6 4t2.125.875T9 7q0 1.225-.875 2.113T6 10"/></svg>

After

Width:  |  Height:  |  Size: 494 B

View File

@ -64,7 +64,7 @@ impl OverlayList {
"display",
(*meta.name).chars().last().unwrap().to_string().into(),
);
("Mirror", panels_root)
("Passthru", panels_root)
}
OverlayCategory::Panel | OverlayCategory::BuiltInPanel => {
let icon: Rc<str> = if let Some(icon) = meta.icon.as_ref() {