From 2dbd8b46ae2503d81f2a80d6cc89e9e284682b18 Mon Sep 17 00:00:00 2001 From: JanK Date: Tue, 8 Oct 2024 11:42:56 +0200 Subject: [PATCH] Reworked vanilla design of SignSearchNavigation --- .../SignSearchNavigationActivity.java | 8 +++--- .../themes/vanilla/lss/sign-search.lss | 25 +++++++++++-------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/core/src/main/java/com/rappytv/signsearch/gui/navigation/SignSearchNavigationActivity.java b/core/src/main/java/com/rappytv/signsearch/gui/navigation/SignSearchNavigationActivity.java index d8a1b76..9e5dc47 100644 --- a/core/src/main/java/com/rappytv/signsearch/gui/navigation/SignSearchNavigationActivity.java +++ b/core/src/main/java/com/rappytv/signsearch/gui/navigation/SignSearchNavigationActivity.java @@ -33,10 +33,12 @@ public void initialize(Parent parent) { .addId("input-container"); HorizontalListWidget header = new HorizontalListWidget() - .addId("header"); + .addId("header") + .addId("row"); DivWidget searchDiv = new DivWidget() - .addId("input"); + .addId("input") + .addId("search-wrapper"); ComponentWidget searchLabel = ComponentWidget.i18n("signsearch.ui.label.search") .addId("input-label"); @@ -69,7 +71,7 @@ public void initialize(Parent parent) { .addId("advanced-options-label"); DivWidget blacklistDiv = new DivWidget() - .addId("input"); + .addId("row"); ComponentWidget blacklistLabel = ComponentWidget.i18n("signsearch.ui.label.blacklist") .addId("input-label"); diff --git a/core/src/main/resources/assets/signsearch/themes/vanilla/lss/sign-search.lss b/core/src/main/resources/assets/signsearch/themes/vanilla/lss/sign-search.lss index 12fc690..5e58b75 100644 --- a/core/src/main/resources/assets/signsearch/themes/vanilla/lss/sign-search.lss +++ b/core/src/main/resources/assets/signsearch/themes/vanilla/lss/sign-search.lss @@ -12,20 +12,16 @@ } .header { - height: 40; - width: 100%; - space-between-entries: 10; + space-between-entries: 15; .input { height: 100%; - width: 100; - alignment: center; + width: 70%; } .checkbox-div { height: 100%; - width: 20; - alignment: center; + width: 20%; } } @@ -34,9 +30,19 @@ margin-bottom: 10; } - .input { + .row { + alignment-x: center; + width: 40%; height: 40; - width: 100; + } + + .input-label { + alignment-x: center; + } + + .input-item { + height: 100%; + width: 100%; alignment-x: center; } @@ -71,7 +77,6 @@ .checkbox-label { top: 0; - left: 50%; alignment-x: center; font-size: 0.8; }