From 42ef59ef17cb0a56c6ac1d8f220db7ca461c5411 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 22 Oct 2020 04:52:32 +0200 Subject: Matrix: temporary disable vim keys that interfer with room search, also include embedded item when pressing enter --- src/Body.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 6b7826d..f1c101f 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -476,14 +476,14 @@ namespace QuickMedia { else strftime(time_str, sizeof(time_str) - 1, "%a %b %d %H:%M:%S %Y", message_tm); */ - strftime(time_str, sizeof(time_str) - 1, "%H:%M:%S", message_tm); + strftime(time_str, sizeof(time_str) - 1, "%a %b %d %H:%M", message_tm); if(body_item->timestamp_text) body_item->timestamp_text->setString(time_str); else - body_item->timestamp_text = std::make_unique(time_str, *font, 14); + body_item->timestamp_text = std::make_unique(time_str, *font, 10); - body_item->timestamp_text->setFillColor(sf::Color(185, 190, 198)); + body_item->timestamp_text->setFillColor(sf::Color(185, 190, 198, 100)); } } @@ -702,7 +702,7 @@ namespace QuickMedia { } if(item->timestamp_text) { - item->timestamp_text->setPosition(std::floor(item_pos.x + size.x - item->timestamp_text->getLocalBounds().width - padding_x), timestamp_text_y + 4.0f); + item->timestamp_text->setPosition(std::floor(item_pos.x + size.x - item->timestamp_text->getLocalBounds().width - padding_x), timestamp_text_y + 8.0f); window.draw(*item->timestamp_text); } -- cgit v1.2.3