Skip to content

Commit

Permalink
Update AddressItem UI
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma committed Dec 2, 2024
1 parent 23da6ba commit a5f3d03
Show file tree
Hide file tree
Showing 21 changed files with 160 additions and 289 deletions.
13 changes: 2 additions & 11 deletions client/images/icon_download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions client/images/icon_download_hover.svg

This file was deleted.

12 changes: 0 additions & 12 deletions client/images/icon_download_pressed.svg

This file was deleted.

14 changes: 2 additions & 12 deletions client/images/icon_remove.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions client/images/icon_remove_hover.svg

This file was deleted.

13 changes: 0 additions & 13 deletions client/images/icon_remove_pressed.svg

This file was deleted.

4 changes: 0 additions & 4 deletions client/images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
<file>icon_checkbox_check_disabled.svg</file>
<file>icon_checkbox_check_hover.svg</file>
<file>icon_digitempel.svg</file>
<file>icon_download_hover.svg</file>
<file>icon_download.svg</file>
<file>icon_download_pressed.svg</file>
<file>icon_Edit_hover.svg</file>
<file>icon_Edit_pressed.svg</file>
<file>icon_Edit.svg</file>
Expand All @@ -55,9 +53,7 @@
<file>icon_radio_check_active.svg</file>
<file>icon_radio_check_disabled.svg</file>
<file>icon_radio_check_hover.svg</file>
<file>icon_remove_hover.svg</file>
<file>icon_remove.svg</file>
<file>icon_remove_pressed.svg</file>
<file>icon_Seaded.svg</file>
<file>icon_Seaded_hover.svg</file>
<file>intro_crypto-select_en.png</file>
Expand Down
10 changes: 0 additions & 10 deletions client/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@
</context>
<context>
<name>AddressItem</name>
<message>
<source>ADD</source>
<translation>ADD</translation>
</message>
<message>
<source>ADDED</source>
<translation>ADDED</translation>
</message>
<message>
<source> (Yourself)</source>
<translation> (Yourself)</translation>
Expand All @@ -129,12 +121,10 @@
</message>
<message>
<source>Added</source>
<extracomment>accessible</extracomment>
<translation>Added</translation>
</message>
<message>
<source>Add</source>
<extracomment>accessible</extracomment>
<translation>Add</translation>
</message>
<message>
Expand Down
10 changes: 0 additions & 10 deletions client/translations/et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@
</context>
<context>
<name>AddressItem</name>
<message>
<source>ADD</source>
<translation>LISA</translation>
</message>
<message>
<source>ADDED</source>
<translation>LISATUD</translation>
</message>
<message>
<source> (Yourself)</source>
<translation> (Sina ise)</translation>
Expand All @@ -129,12 +121,10 @@
</message>
<message>
<source>Added</source>
<extracomment>accessible</extracomment>
<translation>Lisatud</translation>
</message>
<message>
<source>Add</source>
<extracomment>accessible</extracomment>
<translation>Lisa</translation>
</message>
<message>
Expand Down
10 changes: 0 additions & 10 deletions client/translations/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@
</context>
<context>
<name>AddressItem</name>
<message>
<source>ADD</source>
<translation>ДОБАВИТЬ</translation>
</message>
<message>
<source>ADDED</source>
<translation>Добавлен</translation>
</message>
<message>
<source> (Yourself)</source>
<translation> (Вы сами)</translation>
Expand All @@ -129,12 +121,10 @@
</message>
<message>
<source>Added</source>
<extracomment>accessible</extracomment>
<translation>Добавлен</translation>
</message>
<message>
<source>Add</source>
<extracomment>accessible</extracomment>
<translation>Добавить</translation>
</message>
<message>
Expand Down
5 changes: 1 addition & 4 deletions client/widgets/AddressItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ AddressItem::AddressItem(CKey k, QWidget *parent, bool showIcon)
ui->idType->setFont(Styles::font(Styles::Regular, 11));
ui->idType->installEventFilter(this);

ui->remove->setIcons(QStringLiteral("/images/icon_remove.svg"), QStringLiteral("/images/icon_remove_hover.svg"),
QStringLiteral("/images/icon_remove_pressed.svg"), 17, 17);
ui->remove->init(LabelButton::White);
connect(ui->add, &QToolButton::clicked, this, [this]{ emit add(this);});
connect(ui->remove, &LabelButton::clicked, this, [this]{ emit remove(this);});
connect(ui->remove, &QToolButton::clicked, this, [this]{ emit remove(this);});

ui->add->setFont(Styles::font(Styles::Condensed, 12));
ui->added->setFont(ui->add->font());
Expand Down
1 change: 0 additions & 1 deletion client/widgets/AddressItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class AddressItem final : public Item
public:
enum ShowToolButton
{
None,
Remove,
Add,
Added,
Expand Down
Loading

0 comments on commit a5f3d03

Please sign in to comment.