feat: Tweak Lyra popup UI (#768)
## Summary I want to preface this PR by stating that the proposed changes are subjective to people's opinions. The following is just my suggestion, but I'm of course open to changes. The popups in the currently implemented version of the Lyra theme feel a bit out of place. This PR suggests an updated version which looks a bit more polished and in line with the rest of the theme. I've also taken the liberty to remove the ellipsis behind the text of the popups, as they made the popup feel a bit off balance (example below). With the applied changes, popups will look like this.  The vertical position is (more or less) aligned to be in line with the sleep button. I'm aware the popup is used for other purposes aside from the sleep message, but this still felt like a good place. It's also a place where your eyes naturally 'rest'. The popup has a small 2px white outline, neatly separating it from whatever is behind it. ### Alternatives considered and rationale behind proposal Initially I started out worked off the Figma design for the Lyra theme, which [moves the popups](https://www.figma.com/design/UhxoV4DgUnfrDQgMPPTXog/Lyra-Theme?node-id=2011-19296&t=Ppj6B2MrFRfUo9YX-1) to the bottom of the screen. To me, this results in popups that are much too easy to miss:  After this, I tried moving the popup back up (to the position of the sleep button), but to me it still kinda disappeared into the text of the book:  Inverting the colors of the popup made things stand out the perfect amount in my opinion. The white outline separates the popup from what is behind it.  This looked much better to me. The only thing that felt a bit off to me, was the balance due to the ellipsis at the end of the popup text. Also, "Entering Sleep..." felt a bit.. engineer-y. I felt something a bit more 'conversational' makes at all feel a bit more human-centric. But I'm no copywriter, and English is not even my native language. So feel free to chip in! After tweaking that, I ended up with the final result: _(Same picture as the first one shown in this PR)_  ## Additional Context * Figma design: https://www.figma.com/design/UhxoV4DgUnfrDQgMPPTXog/Lyra-Theme?node-id=2011-19296&t=Ppj6B2MrFRfUo9YX-1 --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
This commit is contained in:
@@ -59,6 +59,7 @@ enum class StrId : uint16_t {
|
||||
STR_EMPTY_FILE,
|
||||
STR_OUT_OF_BOUNDS,
|
||||
STR_LOADING,
|
||||
STR_LOADING_POPUP,
|
||||
STR_LOAD_XTC_FAILED,
|
||||
STR_LOAD_TXT_FAILED,
|
||||
STR_LOAD_EPUB_FAILED,
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "4"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "SPUŠTĚNÍ"
|
||||
STR_SLEEPING: "SPÁNEK"
|
||||
STR_ENTERING_SLEEP: "Vstup do režimu spánku..."
|
||||
STR_ENTERING_SLEEP: "Vstup do režimu spánku"
|
||||
STR_BROWSE_FILES: "Procházet soubory"
|
||||
STR_FILE_TRANSFER: "Přenos souborů"
|
||||
STR_SETTINGS_TITLE: "Nastavení"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Vybrat kapitolu"
|
||||
STR_NO_CHAPTERS: "Žádné kapitoly"
|
||||
STR_END_OF_BOOK: "Konec knihy"
|
||||
STR_EMPTY_CHAPTER: "Prázdná kapitola"
|
||||
STR_INDEXING: "Indexování..."
|
||||
STR_INDEXING: "Indexování"
|
||||
STR_MEMORY_ERROR: "Chyba paměti"
|
||||
STR_PAGE_LOAD_ERROR: "Chyba načítání stránky"
|
||||
STR_EMPTY_FILE: "Prázdný soubor"
|
||||
STR_OUT_OF_BOUNDS: "Mimo hranice"
|
||||
STR_LOADING: "Načítání..."
|
||||
STR_LOADING_POPUP: "Načítání"
|
||||
STR_LOAD_XTC_FAILED: "Nepodařilo se načíst XTC"
|
||||
STR_LOAD_TXT_FAILED: "Nepodařilo se načíst TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Nepodařilo se načíst EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "0"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "BOOTING"
|
||||
STR_SLEEPING: "SLEEPING"
|
||||
STR_ENTERING_SLEEP: "Entering Sleep..."
|
||||
STR_ENTERING_SLEEP: "Going to sleep"
|
||||
STR_BROWSE_FILES: "Browse Files"
|
||||
STR_FILE_TRANSFER: "File Transfer"
|
||||
STR_SETTINGS_TITLE: "Settings"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Select Chapter"
|
||||
STR_NO_CHAPTERS: "No chapters"
|
||||
STR_END_OF_BOOK: "End of book"
|
||||
STR_EMPTY_CHAPTER: "Empty chapter"
|
||||
STR_INDEXING: "Indexing..."
|
||||
STR_INDEXING: "Indexing"
|
||||
STR_MEMORY_ERROR: "Memory error"
|
||||
STR_PAGE_LOAD_ERROR: "Page load error"
|
||||
STR_EMPTY_FILE: "Empty file"
|
||||
STR_OUT_OF_BOUNDS: "Out of bounds"
|
||||
STR_LOADING: "Loading..."
|
||||
STR_LOADING_POPUP: "Loading"
|
||||
STR_LOAD_XTC_FAILED: "Failed to load XTC"
|
||||
STR_LOAD_TXT_FAILED: "Failed to load TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Failed to load EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "2"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "DÉMARRAGE EN COURS"
|
||||
STR_SLEEPING: "VEILLE"
|
||||
STR_ENTERING_SLEEP: "Mise en veille…"
|
||||
STR_ENTERING_SLEEP: "Mise en veille"
|
||||
STR_BROWSE_FILES: "Fichiers"
|
||||
STR_FILE_TRANSFER: "Transfert"
|
||||
STR_SETTINGS_TITLE: "Réglages"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Choix du chapitre"
|
||||
STR_NO_CHAPTERS: "Aucun chapitre"
|
||||
STR_END_OF_BOOK: "Fin du livre"
|
||||
STR_EMPTY_CHAPTER: "Chapitre vide"
|
||||
STR_INDEXING: "Indexation en cours…"
|
||||
STR_INDEXING: "Indexation en cours"
|
||||
STR_MEMORY_ERROR: "Erreur de mémoire"
|
||||
STR_PAGE_LOAD_ERROR: "Erreur de chargement"
|
||||
STR_EMPTY_FILE: "Fichier vide"
|
||||
STR_OUT_OF_BOUNDS: "Dépassement de mémoire"
|
||||
STR_LOADING: "Chargement…"
|
||||
STR_LOADING_POPUP: "Chargement"
|
||||
STR_LOAD_XTC_FAILED: "Erreur de chargement du fichier XTC"
|
||||
STR_LOAD_TXT_FAILED: "Erreur de chargement du fichier TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Erreur de chargement du fichier EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "3"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "STARTEN"
|
||||
STR_SLEEPING: "STANDBY"
|
||||
STR_ENTERING_SLEEP: "Standby..."
|
||||
STR_ENTERING_SLEEP: "Standby"
|
||||
STR_BROWSE_FILES: "Durchsuchen"
|
||||
STR_FILE_TRANSFER: "Datentransfer"
|
||||
STR_SETTINGS_TITLE: "Einstellungen"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Kapitel auswählen"
|
||||
STR_NO_CHAPTERS: "Keine Kapitel"
|
||||
STR_END_OF_BOOK: "Buchende"
|
||||
STR_EMPTY_CHAPTER: "Kapitelende"
|
||||
STR_INDEXING: "Indexieren…"
|
||||
STR_INDEXING: "Indexieren"
|
||||
STR_MEMORY_ERROR: "Speicherfehler"
|
||||
STR_PAGE_LOAD_ERROR: "Seitenladefehler"
|
||||
STR_EMPTY_FILE: "Leere Datei"
|
||||
STR_OUT_OF_BOUNDS: "Zu groß"
|
||||
STR_LOADING: "Laden…"
|
||||
STR_LOADING_POPUP: "Laden"
|
||||
STR_LOAD_XTC_FAILED: "Ladefehler bei XTC"
|
||||
STR_LOAD_TXT_FAILED: "Ladefehler bei TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Ladefehler bei EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "5"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "INICIANDO"
|
||||
STR_SLEEPING: "EM REPOUSO"
|
||||
STR_ENTERING_SLEEP: "Entrando em repouso..."
|
||||
STR_ENTERING_SLEEP: "Entrando em repouso"
|
||||
STR_BROWSE_FILES: "Arquivos"
|
||||
STR_FILE_TRANSFER: "Transferência"
|
||||
STR_SETTINGS_TITLE: "Configurações"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Escolher capítulo"
|
||||
STR_NO_CHAPTERS: "Sem capítulos"
|
||||
STR_END_OF_BOOK: "Fim do livro"
|
||||
STR_EMPTY_CHAPTER: "Capítulo vazio"
|
||||
STR_INDEXING: "Indexando..."
|
||||
STR_INDEXING: "Indexando"
|
||||
STR_MEMORY_ERROR: "Erro de memória"
|
||||
STR_PAGE_LOAD_ERROR: "Erro página"
|
||||
STR_EMPTY_FILE: "Arquivo vazio"
|
||||
STR_OUT_OF_BOUNDS: "Fora dos limites"
|
||||
STR_LOADING: "Carregando..."
|
||||
STR_LOADING_POPUP: "Carregando"
|
||||
STR_LOAD_XTC_FAILED: "Falha ao carregar XTC"
|
||||
STR_LOAD_TXT_FAILED: "Falha ao carregar TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Falha ao carregar EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "6"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "Загрузка"
|
||||
STR_SLEEPING: "Спящий режим"
|
||||
STR_ENTERING_SLEEP: "Переход в сон..."
|
||||
STR_ENTERING_SLEEP: "Переход в сон"
|
||||
STR_BROWSE_FILES: "Обзор файлов"
|
||||
STR_FILE_TRANSFER: "Передача файлов"
|
||||
STR_SETTINGS_TITLE: "Настройки"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Выберите главу"
|
||||
STR_NO_CHAPTERS: "Глав нет"
|
||||
STR_END_OF_BOOK: "Конец книги"
|
||||
STR_EMPTY_CHAPTER: "Пустая глава"
|
||||
STR_INDEXING: "Индексация..."
|
||||
STR_INDEXING: "Индексация"
|
||||
STR_MEMORY_ERROR: "Ошибка памяти"
|
||||
STR_PAGE_LOAD_ERROR: "Ошибка загрузки страницы"
|
||||
STR_EMPTY_FILE: "Пустой файл"
|
||||
STR_OUT_OF_BOUNDS: "Выход за пределы"
|
||||
STR_LOADING: "Загрузка..."
|
||||
STR_LOADING_POPUP: "Загрузка"
|
||||
STR_LOAD_XTC_FAILED: "Не удалось загрузить XTC"
|
||||
STR_LOAD_TXT_FAILED: "Не удалось загрузить TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Не удалось загрузить EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "1"
|
||||
STR_CROSSPOINT: "CrossPoint"
|
||||
STR_BOOTING: "BOOTING"
|
||||
STR_SLEEPING: "SLEEPING"
|
||||
STR_ENTERING_SLEEP: "ENTERING SLEEP..."
|
||||
STR_ENTERING_SLEEP: "ENTERING SLEEP"
|
||||
STR_BROWSE_FILES: "Buscar archivos"
|
||||
STR_FILE_TRANSFER: "Transferencia de archivos"
|
||||
STR_SETTINGS_TITLE: "Configuración"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Seleccionar capítulo"
|
||||
STR_NO_CHAPTERS: "Sin capítulos"
|
||||
STR_END_OF_BOOK: "Fin del libro"
|
||||
STR_EMPTY_CHAPTER: "Capítulo vacío"
|
||||
STR_INDEXING: "Indexando..."
|
||||
STR_INDEXING: "Indexando"
|
||||
STR_MEMORY_ERROR: "Error de memoria"
|
||||
STR_PAGE_LOAD_ERROR: "Error al cargar la página"
|
||||
STR_EMPTY_FILE: "Archivo vacío"
|
||||
STR_OUT_OF_BOUNDS: "Out of bounds"
|
||||
STR_LOADING: "Cargando..."
|
||||
STR_LOADING_POPUP: "Cargando"
|
||||
STR_LOAD_XTC_FAILED: "Error al cargar XTC"
|
||||
STR_LOAD_TXT_FAILED: "Error al cargar TXT"
|
||||
STR_LOAD_EPUB_FAILED: "Error al cargar EPUB"
|
||||
|
||||
@@ -5,7 +5,7 @@ _order: "7"
|
||||
STR_CROSSPOINT: "Crosspoint"
|
||||
STR_BOOTING: "STARTAR"
|
||||
STR_SLEEPING: "VILA"
|
||||
STR_ENTERING_SLEEP: "Går i vila…"
|
||||
STR_ENTERING_SLEEP: "Går i vila"
|
||||
STR_BROWSE_FILES: "Bläddra filer…"
|
||||
STR_FILE_TRANSFER: "Filöverföring"
|
||||
STR_SETTINGS_TITLE: "Inställningar"
|
||||
@@ -19,12 +19,13 @@ STR_SELECT_CHAPTER: "Välj kapitel"
|
||||
STR_NO_CHAPTERS: "Inga kapitel"
|
||||
STR_END_OF_BOOK: "Slutet på boken"
|
||||
STR_EMPTY_CHAPTER: "Tomt kapitel"
|
||||
STR_INDEXING: "Indexerar…"
|
||||
STR_INDEXING: "Indexerar"
|
||||
STR_MEMORY_ERROR: "Minnesfel"
|
||||
STR_PAGE_LOAD_ERROR: "Sidladdningsfel"
|
||||
STR_EMPTY_FILE: "Tom fil"
|
||||
STR_OUT_OF_BOUNDS: "Utanför gränserna"
|
||||
STR_LOADING: "Laddar…"
|
||||
STR_LOADING_POPUP: "Laddar"
|
||||
STR_LOAD_XTC_FAILED: "Misslyckades ladda XTC"
|
||||
STR_LOAD_TXT_FAILED: "Misslyckades ladda TCT"
|
||||
STR_LOAD_EPUB_FAILED: "Misslyckades ladda EPUB"
|
||||
|
||||
Reference in New Issue
Block a user