Create a copy icon. Change the copy button text to be an icon

This commit is contained in:
Mm2PL
2019-08-23 19:44:56 +02:00
committed by fourtf
parent f2f5ae9c93
commit 1c242a51dd
8 changed files with 98 additions and 59 deletions
+3 -1
View File
@@ -10,6 +10,8 @@ Resources2::Resources2()
this->buttons.addSplitDark = QPixmap(":/buttons/addSplitDark.png");
this->buttons.ban = QPixmap(":/buttons/ban.png");
this->buttons.banRed = QPixmap(":/buttons/banRed.png");
this->buttons.copyDark = QPixmap(":/buttons/copyDark.png");
this->buttons.copyLight = QPixmap(":/buttons/copyLight.png");
this->buttons.menuDark = QPixmap(":/buttons/menuDark.png");
this->buttons.menuLight = QPixmap(":/buttons/menuLight.png");
this->buttons.mod = QPixmap(":/buttons/mod.png");
@@ -46,4 +48,4 @@ Resources2::Resources2()
this->twitch.vip = QPixmap(":/twitch/vip.png");
}
} // namespace chatterino
} // namespace chatterino
+3 -1
View File
@@ -17,6 +17,8 @@ public:
QPixmap addSplitDark;
QPixmap ban;
QPixmap banRed;
QPixmap copyDark;
QPixmap copyLight;
QPixmap menuDark;
QPixmap menuLight;
QPixmap mod;
@@ -60,4 +62,4 @@ public:
} twitch;
};
} // namespace chatterino
} // namespace chatterino
+4 -3
View File
@@ -62,10 +62,11 @@ UserInfoPopup::UserInfoPopup()
name_box.withoutMargin();
auto name = name_box.emplace<Label>().assign(&this->ui_.nameLabel);
LayoutCreator<EffectLabel2> copy_user_name = name_box.emplace<EffectLabel2>(this);
copy_user_name->getLabel().setText("Copy");
copy_user_name->getLabel().setCentered(true);
copy_user_name->setPixmap(app->resources->buttons.copyDark);
// TODO(mm2pl): change this when the card get themed.
copy_user_name->setScaleIndependantSize(32, 32);
auto font = name->font();
font.setBold(true);