mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-25 05:48:54 -04:00
add margin for left and right icon in toolbar
This commit is contained in:
parent
cae10d9e39
commit
e9420e10c7
@ -69,6 +69,15 @@ TopWidget QToolButton::menu-arrow {
|
||||
image: none;
|
||||
}
|
||||
|
||||
TopWidget QToolButton#backButton {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
|
||||
TopWidget QToolButton#fullScreenButton {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
QMenu {
|
||||
border: none;
|
||||
min-width: 320px;
|
||||
|
@ -19,6 +19,7 @@ TopWidget::TopWidget(QWidget *parent) :
|
||||
KiwixApp::instance()->getTabWidget()->triggerWebPageAction(QWebEnginePage::Back);
|
||||
});
|
||||
addAction(mp_historyBackAction);
|
||||
widgetForAction(mp_historyBackAction)->setObjectName("backButton");
|
||||
mp_historyForwardAction = new QAction(this);
|
||||
mp_historyForwardAction->setIcon(QIcon(":/icons/forward.svg"));
|
||||
mp_historyForwardAction->setText(tr("forward"));
|
||||
@ -49,6 +50,7 @@ TopWidget::TopWidget(QWidget *parent) :
|
||||
addAction(QIcon(":/icons/minimize.svg"), "minimize", parent, SLOT(showMinimized()));
|
||||
#endif
|
||||
addAction(KiwixApp::instance()->getAction(KiwixApp::ToggleFullscreenAction));
|
||||
widgetForAction(KiwixApp::instance()->getAction(KiwixApp::ToggleFullscreenAction))->setObjectName("fullScreenButton");
|
||||
#if !SYSTEMTITLEBAR
|
||||
addAction(QIcon(":/icons/close.svg"), "close", parent, SLOT(close()));
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user