🐞 fix(UI模块): 增加悬浮按钮宽度

This commit is contained in:
huheng@kylinos.cn 2022-10-27 13:38:22 +08:00
parent d09f58076d
commit 8d9ed03f49
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#include <QBitmap>
#include <QHBoxLayout>
const int WIN_W = 126;
const int WIN_W = 135;
const int WIN_H = 48;
const int ICON_W = 16;
const int ICON_H = 16;
@ -18,6 +18,7 @@ LevitationButton::LevitationButton(QWidget *parent) : QPushButton(parent)
m_icon->setFixedSize(ICON_W, ICON_H);
m_text = new QLabel(this);
m_text->setStyleSheet("color:#FFFFFF;text-align:center;");
m_text->setMargin(0);
QHBoxLayout *layout = new QHBoxLayout;
layout->setSpacing(0);