dash-frontend: popup manager
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
<rectangle
|
||||
position="absolute" width="100%" height="100%"
|
||||
gradient="radial" color="#44BBFF22" color2="#00000000" />
|
||||
|
||||
<div
|
||||
id="content"
|
||||
flex_direction="column"
|
||||
@@ -95,6 +96,9 @@
|
||||
>
|
||||
<!-- filled-in at runtime -->
|
||||
</div>
|
||||
|
||||
<div position="absolute" id="popup_manager" width="100%" height="100%" />
|
||||
|
||||
</rectangle>
|
||||
<!-- BOTTOM PANEL -->
|
||||
<rectangle
|
||||
|
||||
7
dash-frontend/assets/gui/view/app_launcher.xml
Normal file
7
dash-frontend/assets/gui/view/app_launcher.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<layout>
|
||||
<elements>
|
||||
<rectangle new_pass="1" color="#ff000099" width="100%" height="100%">
|
||||
<label text="TEST" size="80" />
|
||||
</rectangle>
|
||||
</elements>
|
||||
</layout>
|
||||
45
dash-frontend/assets/gui/view/popup_window.xml
Normal file
45
dash-frontend/assets/gui/view/popup_window.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<layout>
|
||||
<include src="../theme.xml" />
|
||||
|
||||
<elements>
|
||||
<div
|
||||
id="root"
|
||||
new_pass="1"
|
||||
width="100%"
|
||||
height="100%"
|
||||
flex_direction="column"
|
||||
>
|
||||
<!-- Top black bar -->
|
||||
<rectangle
|
||||
position="relative"
|
||||
color="#000000"
|
||||
round="4"
|
||||
width="100%" height="48"
|
||||
>
|
||||
|
||||
<!-- Shine effect at the top -->
|
||||
<rectangle position="absolute" width="100%" height="2" round="4" color="#ffffff55" />
|
||||
|
||||
<!-- Top bar contents -->
|
||||
<div gap="16" align_items="center">
|
||||
<!-- Back button -->
|
||||
<Button id="but_back" width="48" height="48" color="#ffffff00" border_color="#ffffff00">
|
||||
<sprite src="dashboard/back.svg" width="24" height="24" />
|
||||
</Button>
|
||||
|
||||
<!-- Title -->
|
||||
<label id="popup_title" weight="bold" size="18" text="Pop-up title" />
|
||||
</div>
|
||||
</rectangle>
|
||||
|
||||
<!-- Content -->
|
||||
<rectangle width="100%" height="100%"
|
||||
color="#010310cc"
|
||||
color2="#061e4acc"
|
||||
gradient="vertical"
|
||||
padding="16"
|
||||
id="content">
|
||||
</rectangle>
|
||||
</div>
|
||||
</elements>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user