diff --git a/ui/view/titlebar.cpp b/ui/view/titlebar.cpp index 4b5dec8..f612c0f 100644 --- a/ui/view/titlebar.cpp +++ b/ui/view/titlebar.cpp @@ -6,10 +6,11 @@ #include #include -const int DEFAULT_HEIGHT = 40; -const int TABLET_HEIGHT = 52; +const int DEFAULT_HEIGHT = 48; +const int TABLET_HEIGHT = 64; const int ICON_SIZE = 16; const int BTN_SIZE = 36; +const int TABLET_BTN_SIZE = 48; Titlebar::Titlebar(QWidget *parent) : QWidget(parent) { @@ -99,10 +100,20 @@ void Titlebar::changeMode(PublicAttributes::Model model) m_isMaximize = false; } if (model == PublicAttributes::Model::Table) { + setFixedHeight(TABLET_HEIGHT); + m_titleIcon->setIconSize(QSize(32, 32)); m_isMaximize = true; m_maxBtn->hide(); + m_menuBtn->setFixedSize(TABLET_BTN_SIZE, TABLET_BTN_SIZE); + m_minBtn->setFixedSize(TABLET_BTN_SIZE, TABLET_BTN_SIZE); + m_closeBtn->setFixedSize(TABLET_BTN_SIZE, TABLET_BTN_SIZE); } else { + setFixedHeight(DEFAULT_HEIGHT); + m_titleIcon->setIconSize(QSize(24, 24)); m_maxBtn->show(); + m_menuBtn->setFixedSize(BTN_SIZE, BTN_SIZE); + m_minBtn->setFixedSize(BTN_SIZE, BTN_SIZE); + m_closeBtn->setFixedSize(BTN_SIZE, BTN_SIZE); } }