From 25c9daf307bcb5deffab138550bdaba23f097b26 Mon Sep 17 00:00:00 2001 From: Bleak Grey Date: Sat, 1 Aug 2020 02:42:14 +0300 Subject: [PATCH] Refactor Accounts button --- data/app.css | 6 - data/ui/widgets/accounts_button.ui | 35 ++- data/ui/widgets/accounts_button_item.ui | 203 +++++++++-------- data/ui/widgets/status.ui | 1 + src/Widgets/AccountsButton.vala | 289 ++++++++++++------------ src/Widgets/Avatar.vala | 38 ++-- src/Widgets/Status.vala | 18 +- 7 files changed, 303 insertions(+), 287 deletions(-) diff --git a/data/app.css b/data/app.css index c789e0e..b853ac9 100644 --- a/data/app.css +++ b/data/app.css @@ -15,12 +15,6 @@ padding: 6px; border-radius:6px; } -/*.attachment box button:nth-child(1) {*/ -/* border-radius:0 0 0 8px;*/ -/*}*/ -/*.attachment box button:nth-child(2) {*/ -/* border-radius:0 8px 0 0;*/ -/*}*/ .header-title-button { margin: 0px; diff --git a/data/ui/widgets/accounts_button.ui b/data/ui/widgets/accounts_button.ui index 0e48682..378f38b 100644 --- a/data/ui/widgets/accounts_button.ui +++ b/data/ui/widgets/accounts_button.ui @@ -14,6 +14,7 @@ True + 275 True False 12 @@ -24,7 +25,7 @@ True True True - + <b><span size="large">No account</span></b> True accounts @@ -34,22 +35,11 @@ 0 - - - False - 4 - - - False - True - 1 - - True False - 6 + 12 6 True 6 @@ -183,7 +173,7 @@ False True - 2 + 1 @@ -195,7 +185,7 @@ False True - 3 + 2 @@ -208,7 +198,7 @@ False True - 4 + 3 @@ -221,7 +211,7 @@ False True - 5 + 4 @@ -234,7 +224,7 @@ False True - 6 + 5 @@ -244,7 +234,7 @@ - 400 + 350 True False 12 @@ -271,7 +261,6 @@ True True True - in 300 True @@ -282,6 +271,9 @@ True False + @@ -301,6 +293,9 @@ +