move add_display::View -> add_window::View & display_options::View -> window_options::VIew, remove displays logic and replace it with window ones
[skip ci]
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<layout>
|
||||
<include src="../t_group_box.xml" />
|
||||
|
||||
<elements>
|
||||
<div gap="16" flex_direction="column" width="100%" justify_self="center" align_items="center" justify_content="center">
|
||||
<rectangle macro="group_box" align_items="center">
|
||||
<label translation="POPUP_ADD_DISPLAY.RESOLUTION" weight="bold" size="20" />
|
||||
<div gap="8" align_items="center">
|
||||
<div flex_direction="column" gap="8" align_items="end">
|
||||
<label translation="WIDTH" />
|
||||
<label translation="HEIGHT" />
|
||||
</div>
|
||||
<div flex_direction="column" gap="8">
|
||||
<Slider show_value="0" id="slider_width" value="2" min_value="0" max_value="6" width="250" height="24" />
|
||||
<Slider show_value="0" id="slider_height" value="2" min_value="0" max_value="6" width="250" height="24" />
|
||||
</div>
|
||||
<div flex_direction="column" gap="8">
|
||||
<label id="label_width" weight="bold" text="px" />
|
||||
<label id="label_height" weight="bold" text="px" />
|
||||
</div>
|
||||
</div>
|
||||
<CheckBox id="cb_portrait" translation="DISPLAY_PORTRAIT_MODE" height="24" />
|
||||
<rectangle min_width="64" min_height="32" macro="group_box" id="rect_display" align_items="center" justify_content="center" padding="0" overflow="hidden">
|
||||
<label id="label_display" align="center" />
|
||||
</rectangle>
|
||||
</rectangle>
|
||||
<Button id="btn_confirm" color="#44ce22FF" padding_top="4" padding_bottom="4" round="8" padding_left="12" padding_right="12" min_height="32">
|
||||
<sprite src_builtin="dashboard/display.svg" width="32" height="32" />
|
||||
<label translation="ADD_DISPLAY" weight="bold" size="17" shadow="#00000099" />
|
||||
</Button>
|
||||
<label id="label_display_name" weight="bold" size="20" />
|
||||
</div>
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -26,13 +26,10 @@
|
||||
<CheckBox id="cb_cage_mode" text="Run in X11 mode (cage)" />
|
||||
<CheckBox id="cb_wayland_mode" text="Run in Wayland mode" checked="1" />
|
||||
<Separator />
|
||||
<Button align_self="baseline" color="#44ce22FF" padding_top="4" padding_bottom="4" round="8" padding_right="12" min_height="40">
|
||||
<Button id="btn_launch" align_self="baseline" color="#44ce22FF" padding_top="4" padding_bottom="4" round="8" padding_right="12" min_height="40">
|
||||
<sprite src_builtin="dashboard/play.svg" width="32" height="32" />
|
||||
<label text="Launch embedded (todo)" weight="bold" size="17" shadow="#00000099" />
|
||||
<label text="Launch" weight="bold" size="17" shadow="#00000099" />
|
||||
</Button>
|
||||
<Separator />
|
||||
<label size="16" weight="bold" text="Or launch it detached" />
|
||||
<div id="display_list_parent" />
|
||||
</div>
|
||||
</div>
|
||||
</elements>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<elements>
|
||||
<rectangle macro="group_box" flex_direction="row" align_items="center">
|
||||
<div id="list_parent" gap="8" flex_direction="row" flex_wrap="wrap" flex_grow="1" />
|
||||
<Button id="btn_add" sprite_src_builtin="dashboard/add.svg" tooltip="ADD_DISPLAY" height="100%" min_width="32" />
|
||||
</rectangle>
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -4,10 +4,11 @@
|
||||
<elements>
|
||||
<div gap="16" flex_direction="column" width="100%" justify_self="center" align_items="center" justify_content="center">
|
||||
<rectangle macro="group_box" align_items="center">
|
||||
<div id="display_parent" />
|
||||
<div id="window_parent" />
|
||||
<div gap="8">
|
||||
<Button id="btn_remove" translation="REMOVE" sprite_src_builtin="dashboard/remove_circle.svg" />
|
||||
<Button id="btn_show_hide" text="showhide" sprite_src_builtin="dashboard/eye.svg" />
|
||||
<Button id="btn_close" translation="CLOSE_WINDOW" sprite_src_builtin="dashboard/remove_circle.svg" />
|
||||
<Button id="btn_kill" translation="TERMINATE_PROCESS" sprite_src_builtin="dashboard/remove_circle.svg" />
|
||||
</div>
|
||||
</rectangle>
|
||||
</div>
|
||||
Reference in New Issue
Block a user