From e02fc5c811702596c74012af0ac3719e714c99f3 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 27 Apr 2023 01:28:55 +0300 Subject: [PATCH] gui: navigation base --- app/src/main/res/values/themes.xml | 2 +- fonts/material.otf | Bin 0 -> 400092 bytes locales/en.yml | 2 +- locales/ru.yml | 2 +- src/grim.rs | 19 +- src/gui/app.rs | 207 +++--------------- src/gui/mod.rs | 17 +- src/gui/platform/android/mod.rs | 31 ++- src/gui/platform/mod.rs | 6 + src/gui/screens/account.rs | 42 ++++ src/gui/screens/accounts.rs | 54 +++++ src/gui/screens/mod.rs | 38 +++- src/gui/screens/navigator.rs | 54 +++++ src/gui/screens/root.rs | 43 ++++ src/gui/screens/wallets.rs | 51 ----- src/gui/{screens/main.rs => views/buttons.rs} | 3 - src/gui/{nav.rs => views/mod.rs} | 9 +- src/gui/views/title_panel.rs | 142 ++++++++++++ src/node/node.rs | 2 +- 19 files changed, 460 insertions(+), 264 deletions(-) create mode 100644 fonts/material.otf create mode 100644 src/gui/screens/account.rs create mode 100644 src/gui/screens/accounts.rs create mode 100644 src/gui/screens/navigator.rs create mode 100644 src/gui/screens/root.rs delete mode 100644 src/gui/screens/wallets.rs rename src/gui/{screens/main.rs => views/buttons.rs} (96%) rename src/gui/{nav.rs => views/mod.rs} (85%) create mode 100644 src/gui/views/title_panel.rs diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index f10195c..90df0e7 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,5 +1,5 @@ -