From eb92ce15f131378e926f25f3bc99a813dce03703 Mon Sep 17 00:00:00 2001 From: TriKriSta Date: Fri, 27 Jul 2018 21:39:14 +0300 Subject: [PATCH] refactor: change text and icons in search forms --- res.qrc | 1 + src/widget/form/searchsettingsform.ui | 8 +-- ui/chatForm/buttons.css | 6 +- ui/chatForm/searchCalendarButton.svg | 98 +++++++++++++++++++++++++++ ui/chatForm/searchDownButton.svg | 44 ++++++------ ui/chatForm/searchHideButton.svg | 46 ++++++------- ui/chatForm/searchSettingsButton.svg | 2 +- ui/chatForm/searchUpButton.svg | 44 ++++++------ 8 files changed, 171 insertions(+), 78 deletions(-) create mode 100644 ui/chatForm/searchCalendarButton.svg diff --git a/res.qrc b/res.qrc index c357773f6..4e53a84a7 100644 --- a/res.qrc +++ b/res.qrc @@ -67,6 +67,7 @@ ui/chatForm/emoteButton.svg ui/chatForm/fileButton.svg ui/chatForm/screenshotButton.svg + ui/chatForm/searchCalendarButton.svg ui/chatForm/searchDownButton.svg ui/chatForm/searchHideButton.svg ui/chatForm/searchSettingsButton.svg diff --git a/src/widget/form/searchsettingsform.ui b/src/widget/form/searchsettingsform.ui index 654d2cd9d..f7f91a609 100644 --- a/src/widget/form/searchsettingsform.ui +++ b/src/widget/form/searchsettingsform.ui @@ -7,7 +7,7 @@ 0 0 473 - 83 + 84 @@ -52,12 +52,12 @@ - with the end + from the end - with the first + from the beginning @@ -82,7 +82,7 @@ - Choice + diff --git a/ui/chatForm/buttons.css b/ui/chatForm/buttons.css index bef35130e..a556510b8 100644 --- a/ui/chatForm/buttons.css +++ b/ui/chatForm/buttons.css @@ -103,10 +103,10 @@ QAbstractButton#searchDownButton QAbstractButton#choiceDateButton { + background-image: url(":/ui/chatForm/searchCalendarButton.svg"); border-radius: 5px; - width: 55px; - height: 25px; - color: #fff + width: 45px; + height: 35px; } QAbstractButton#startButton diff --git a/ui/chatForm/searchCalendarButton.svg b/ui/chatForm/searchCalendarButton.svg new file mode 100644 index 000000000..e0839be6c --- /dev/null +++ b/ui/chatForm/searchCalendarButton.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/ui/chatForm/searchDownButton.svg b/ui/chatForm/searchDownButton.svg index e99f985c5..9068ae888 100644 --- a/ui/chatForm/searchDownButton.svg +++ b/ui/chatForm/searchDownButton.svg @@ -9,37 +9,35 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="7.0183306mm" - height="4.1245208mm" - viewBox="0 0 7.0183304 4.1245209" + width="26.525974" + height="15.58874" + viewBox="0 0 26.525974 15.58874" version="1.1" id="svg8" - inkscape:version="0.92.2 5c3e80d, 2017-08-06" - sodipodi:docname="searchDownButton.svg"> - + sodipodi:docname="searchDownButton.svg" + inkscape:version="0.92.2 2405546, 2018-03-11"> + inkscape:window-y="36" + inkscape:window-maximized="1" + inkscape:current-layer="layer1" /> + @@ -60,7 +58,7 @@ + transform="matrix(0.1242249,0,0,0.1242249,-52.303786,36.122025)"> - + sodipodi:docname="searchHideButton.svg" + inkscape:version="0.92.2 2405546, 2018-03-11"> + inkscape:window-y="36" + inkscape:window-maximized="1" + inkscape:current-layer="layer1" /> + @@ -48,7 +46,7 @@ image/svg+xml - + @@ -59,7 +57,7 @@ transform="translate(59.891963,-41.449704)"> - \ No newline at end of file + diff --git a/ui/chatForm/searchUpButton.svg b/ui/chatForm/searchUpButton.svg index d579c81fc..e425ae579 100644 --- a/ui/chatForm/searchUpButton.svg +++ b/ui/chatForm/searchUpButton.svg @@ -9,37 +9,35 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="7.0183306mm" - height="4.1245208mm" - viewBox="0 0 7.0183304 4.1245209" + width="26.525974" + height="15.58874" + viewBox="0 0 26.525974 15.58874" version="1.1" id="svg8" - inkscape:version="0.92.2 2405546, 2018-03-11" - sodipodi:docname="searchUpButton.svg"> - + sodipodi:docname="searchUpButton.svg" + inkscape:version="0.92.2 2405546, 2018-03-11"> + inkscape:window-maximized="1" + inkscape:current-layer="layer1" /> + @@ -56,11 +54,11 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(59.722852,-41.245778)"> + transform="translate(59.722851,-41.245778)"> + transform="matrix(0.12336383,0,0,-0.12336383,-52.355211,61.903867)">