dash-frontend: tab titles, home screen username
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<layout>
|
||||
<include src="t_tab_title.xml" />
|
||||
|
||||
<elements>
|
||||
<label text="Apps" size="64" weight="bold" />
|
||||
<label text="bottom text" size="16" weight="bold" color="#FFFFFF88" />
|
||||
<TabTitle translation="APPLICATIONS" icon="dashboard/apps.svg" />
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -1,5 +1,7 @@
|
||||
<layout>
|
||||
<include src="t_tab_title.xml" />
|
||||
|
||||
<elements>
|
||||
<label text="Games" size="32" weight="bold" />
|
||||
<TabTitle translation="GAMES" icon="dashboard/games.svg" />
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -2,17 +2,23 @@
|
||||
<include src="../t_menu_button.xml" />
|
||||
|
||||
<elements>
|
||||
<sprite src="dashboard/wayvr_dashboard.svg" min_width="96" min_height="96" />
|
||||
<label text="Hello, user!" size="32" weight="bold" />
|
||||
<label text="Connected to wlx-overlay-s" size="16" weight="bold" color="#bbffbb" />
|
||||
<div
|
||||
flex_direction="column"
|
||||
justify_content="center"
|
||||
align_items="center"
|
||||
flex_grow="1"
|
||||
gap="24">
|
||||
<sprite src="dashboard/wayvr_dashboard.svg" width="96" height="96" />
|
||||
<label id="label_hello" size="32" weight="bold" />
|
||||
|
||||
<!-- main button list -->
|
||||
<div flex_direction="row" gap="8" margin_top="32">
|
||||
<MenuButton id="btn_apps" icon="dashboard/apps.svg" text="Apps" />
|
||||
<MenuButton id="btn_games" icon="dashboard/games.svg" text="Games" />
|
||||
<MenuButton id="btn_monado" icon="dashboard/monado.svg" text="Monado" />
|
||||
<MenuButton id="btn_processes" icon="dashboard/window.svg" text="Processes" />
|
||||
<MenuButton id="btn_settings" icon="dashboard/settings.svg" text="Settings" />
|
||||
<!-- main button list -->
|
||||
<div flex_direction="row" gap="8">
|
||||
<MenuButton id="btn_apps" icon="dashboard/apps.svg" translation="APPLICATIONS" />
|
||||
<MenuButton id="btn_games" icon="dashboard/games.svg" translation="GAMES" />
|
||||
<MenuButton id="btn_monado" icon="dashboard/monado.svg" text="Monado" />
|
||||
<MenuButton id="btn_processes" icon="dashboard/window.svg" translation="PROCESSES" />
|
||||
<MenuButton id="btn_settings" icon="dashboard/settings.svg" translation="SETTINGS" />
|
||||
</div>
|
||||
</div>
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -1,5 +1,7 @@
|
||||
<layout>
|
||||
<include src="t_tab_title.xml" />
|
||||
|
||||
<elements>
|
||||
<label text="Monado" size="32" weight="bold" />
|
||||
<TabTitle translation="MONADO_RUNTIME" icon="dashboard/monado.svg" />
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -1,5 +1,7 @@
|
||||
<layout>
|
||||
<include src="t_tab_title.xml" />
|
||||
|
||||
<elements>
|
||||
<label text="Processes" size="32" weight="bold" />
|
||||
<TabTitle translation="PROCESSES" icon="dashboard/window.svg" />
|
||||
</elements>
|
||||
</layout>
|
||||
@@ -1,5 +1,7 @@
|
||||
<layout>
|
||||
<include src="t_tab_title.xml" />
|
||||
|
||||
<elements>
|
||||
<label text="Settings" size="32" weight="bold" />
|
||||
<TabTitle translation="SETTINGS" icon="dashboard/settings.svg" />
|
||||
</elements>
|
||||
</layout>
|
||||
9
dash-frontend/assets/gui/tab/t_tab_title.xml
Normal file
9
dash-frontend/assets/gui/tab/t_tab_title.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<layout>
|
||||
<!-- translation, icon -->
|
||||
<template name="TabTitle">
|
||||
<div gap="8" align_items="center">
|
||||
<sprite src="${icon}" width="24" height="24" />
|
||||
<label translation="${translation}" size="18" weight="bold" />
|
||||
</div>
|
||||
</template>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user