From fc02302620331ea149de64ab12aea728acc6681b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sun, 9 May 2021 09:23:32 +0200 Subject: [PATCH] content: Improve style --- data/resources/style.css | 64 ++++++++++++++++++------ data/resources/ui/content-message-row.ui | 15 ++++-- src/session/content/message_row.rs | 24 +++++++-- src/session/content/state_row.rs | 1 + src/session/room/event.rs | 23 +++++++++ 5 files changed, 104 insertions(+), 23 deletions(-) diff --git a/data/resources/style.css b/data/resources/style.css index 335ee9e0..1a795019 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -1,23 +1,11 @@ -/* Login */ -.login { - min-width: 250px; -} - .title-header { font-size: 36px; font-weight: bold; } -.content { - background-color: @theme_base_color; -} - -.content:backdrop { - background-color: @theme_unfocused_base_color; -} - -.send-message-area { - margin: 6px; +/* Login */ +.login { + min-width: 250px; } /* Sidebar */ @@ -70,6 +58,48 @@ } /* Content */ +.content { + background-color: @theme_base_color; +} + +.content:backdrop { + background-color: @theme_unfocused_base_color; +} + +.content row { + min-height: 0; + padding-top: 6px; + padding-bottom: 6px; +} + +.content row.has-header { + margin-top: 6px; +} + +.content .event-content { + margin-right: 46px; +} + +.content row:not(.has-header) .event-content { + margin-left: 46px; +} + +.divider-row { + font-size: 0.9em; + font-weight: bold; +} + +.displayname { + font-size: 0.9em; + font-weight: bold; + color: @theme_selected_bg_color; +} + +.timestamp { + font-size: 0.9em; + min-width: 36px; +} + .codeview { border-radius: 5px; padding: 6px; @@ -78,6 +108,10 @@ color: @theme_text_color; } +.send-message-area { + margin: 6px; +} + .message-entry > .view { background-color: @theme_base_color; border-radius: 5px; diff --git a/data/resources/ui/content-message-row.ui b/data/resources/ui/content-message-row.ui index 37c74018..87a7e300 100644 --- a/data/resources/ui/content-message-row.ui +++ b/data/resources/ui/content-message-row.ui @@ -3,23 +3,26 @@