From 871ff33ac79f3d17b0260b8bfcd27780038edd6d Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 3 Apr 2020 22:49:59 +0200 Subject: Add support for last message correction --- main/data/chat_input.ui | 14 +----- main/data/conversation_content_view/view.ui | 6 +-- main/data/message_item_widget_edit_mode.ui | 70 +++++++++++++++++++++++++++++ main/data/theme.css | 12 ++++- 4 files changed, 84 insertions(+), 18 deletions(-) create mode 100644 main/data/message_item_widget_edit_mode.ui (limited to 'main/data') diff --git a/main/data/chat_input.ui b/main/data/chat_input.ui index e47dd4ba..fb004fec 100644 --- a/main/data/chat_input.ui +++ b/main/data/chat_input.ui @@ -45,20 +45,8 @@ - - 300 - true + True - - - True - True - 8 - GTK_WRAP_WORD_CHAR - center - True - - diff --git a/main/data/conversation_content_view/view.ui b/main/data/conversation_content_view/view.ui index af05d285..17f753f5 100644 --- a/main/data/conversation_content_view/view.ui +++ b/main/data/conversation_content_view/view.ui @@ -46,14 +46,12 @@ end start - + False end end - True - - dino-emoticon-add-symbolic + 1 True diff --git a/main/data/message_item_widget_edit_mode.ui b/main/data/message_item_widget_edit_mode.ui new file mode 100644 index 00000000..8a4faca2 --- /dev/null +++ b/main/data/message_item_widget_edit_mode.ui @@ -0,0 +1,70 @@ + + + + + diff --git a/main/data/theme.css b/main/data/theme.css index f72a20d2..44b4b890 100644 --- a/main/data/theme.css +++ b/main/data/theme.css @@ -52,6 +52,14 @@ window.dino-main .dino-sidebar > frame { transition: background .05s ease; } +window.dino-main .dino-conversation .message-box.edit-mode { + background: alpha(@theme_selected_bg_color, 0.1); +} + +window.dino-main .dino-conversation .message-box.edit-mode:hover { + background: alpha(@theme_selected_bg_color, 0.12); +} + window.dino-main .dino-conversation .file-box-outer { background: @theme_base_color; border-radius: 3px; @@ -110,7 +118,9 @@ window.dino-main button.dino-chatinput-button:checked:backdrop { } -.dino-chatinput textview, .dino-chatinput textview text { +.dino-chatinput, +.dino-chatinput textview, +.dino-chatinput textview text { background-color: @theme_base_color; } -- cgit v1.2.3-70-g09d2