UI: Improve TextArea2Splitter icons.

This commit is contained in:
Nodir Temirkhodjaev 2021-01-28 20:43:53 +03:00
parent 0e97595b8c
commit c4d2ff700e
16 changed files with 13 additions and 14 deletions

View File

@ -50,16 +50,15 @@ void TextArea2SplitterHandle::setupUi()
auto layout = new QBoxLayout(direction);
layout->setContentsMargins(0, 0, 0, 0);
m_btMoveAllFrom1To2 = ControlUtil::createSplitterButton(":/images/control_fastforward.png",
m_btMoveAllFrom1To2 = ControlUtil::createSplitterButton(":/icons/arrow-join.png",
[&] { TextAreaUtil::moveAllLines(textArea1(), textArea2()); });
m_btMoveSelectedFrom1To2 = ControlUtil::createSplitterButton(":/images/control_play.png",
m_btMoveSelectedFrom1To2 = ControlUtil::createSplitterButton(":/icons/arrow-curve.png",
[&] { TextAreaUtil::moveSelectedLines(textArea1(), textArea2()); });
m_btInterchangeAll = ControlUtil::createSplitterButton(":/images/control_repeat.png",
m_btInterchangeAll = ControlUtil::createSplitterButton(":/icons/arrow-retweet.png",
[&] { TextAreaUtil::interchangeAllLines(textArea1(), textArea2()); });
m_btMoveSelectedFrom2To1 =
ControlUtil::createSplitterButton(":/images/control_play_backward.png",
m_btMoveSelectedFrom2To1 = ControlUtil::createSplitterButton(":/icons/arrow-curve-180.png",
[&] { TextAreaUtil::moveSelectedLines(textArea2(), textArea1()); });
m_btMoveAllFrom2To1 = ControlUtil::createSplitterButton(":/images/control_rewind.png",
m_btMoveAllFrom2To1 = ControlUtil::createSplitterButton(":/icons/arrow-join-180.png",
[&] { TextAreaUtil::moveAllLines(textArea2(), textArea1()); });
m_buttonsLayout = new QBoxLayout(direction);

View File

@ -200,7 +200,7 @@ void AddressesPage::setupSplitter()
void AddressesPage::setupSplitterButtons()
{
m_btAddLocals = ControlUtil::createSplitterButton(":/images/drive_network.png", [&] {
m_btAddLocals = ControlUtil::createSplitterButton(":/icons/home.png", [&] {
auto area = m_splitter->handle()->currentTextArea();
TextAreaUtil::appendText(area, localNetworks());
});

View File

@ -1,5 +1,10 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>icons/arrow-curve.png</file>
<file>icons/arrow-curve-180.png</file>
<file>icons/arrow-join.png</file>
<file>icons/arrow-join-180.png</file>
<file>icons/arrow-retweet.png</file>
<file>icons/clock.png</file>
<file>icons/cog.png</file>
<file>icons/database.png</file>
@ -8,6 +13,7 @@
<file>icons/folder.png</file>
<file>icons/funnel.png</file>
<file>icons/globe.png</file>
<file>icons/home.png</file>
<file>icons/map-map-marker.png</file>
<file>icons/map-marker.png</file>
<file>icons/monitor.png</file>

View File

@ -2,12 +2,6 @@
<qresource>
<file>images/application-window-96.png</file>
<file>images/computer-96.png</file>
<file>images/control_fastforward.png</file>
<file>images/control_play.png</file>
<file>images/control_play_backward.png</file>
<file>images/control_repeat.png</file>
<file>images/control_rewind.png</file>
<file>images/drive_network.png</file>
<file>images/folder_database.png</file>
<file>images/folder_error.png</file>
<file>images/folder_explore.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
src/ui/icons/arrow-join.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1019 B

BIN
src/ui/icons/home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B