mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Add toolbar and background theming to YACReader
This commit is contained in:
@ -3,12 +3,14 @@
|
||||
#include <QMainWindow>
|
||||
#include <QScrollArea>
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
#include <QAction>
|
||||
#include <QMouseEvent>
|
||||
#include <QCloseEvent>
|
||||
#include <QSettings>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
#include "themable.h"
|
||||
|
||||
#ifdef Y_MAC_UI
|
||||
#include "yacreader_macosx_toolbar.h"
|
||||
@ -28,7 +30,7 @@ class EditShortcutsDialog;
|
||||
|
||||
namespace YACReader {
|
||||
|
||||
class MainWindowViewer : public QMainWindow
|
||||
class MainWindowViewer : public QMainWindow, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -153,6 +155,8 @@ private:
|
||||
QList<QAction *> mglassActions;
|
||||
QList<QAction *> loadedComicActions;
|
||||
|
||||
QToolButton *openToolButton;
|
||||
|
||||
YACReaderSlider *zoomSliderAction;
|
||||
|
||||
HttpVersionChecker *versionChecker;
|
||||
@ -170,6 +174,8 @@ private:
|
||||
void setMglassActionsEnabled(bool enabled);
|
||||
void setLoadedComicActionsEnabled(bool enabled);
|
||||
|
||||
void applyTheme() override;
|
||||
|
||||
//! Manejadores de evento:
|
||||
// void resizeEvent(QResizeEvent * event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
|
||||
Reference in New Issue
Block a user