Switch to unified view

a/GUI/mainw/mainw.cpp b/GUI/mainw/mainw.cpp
...
...
36
36
37
GUI_Player* obj_ref = 0;
37
GUI_Player* obj_ref = 0;
38
38
39
#ifdef Q_OS_UNIX
39
#ifdef Q_OS_UNIX
40
#include <signal.h>
40
#include <signal.h>
41
42
void signal_handler(int sig)
41
void signal_handler(int sig)
43
{
42
{
44
45
    if (sig == SIGWINCH && obj_ref) {
43
    if (sig == SIGWINCH && obj_ref) {
46
        qDebug() << "show everything";
47
        obj_ref->setHidden(false);
44
        obj_ref->setHidden(false);
48
        obj_ref->showNormal();
45
        obj_ref->showNormal();
49
        obj_ref->activateWindow();
46
        obj_ref->activateWindow();
50
    }
51
52
    else if (sig == 15 && obj_ref) {
47
    } else if (sig == 15 && obj_ref) {
53
        qDebug() << "extern close event";
54
        obj_ref->really_close();
48
        obj_ref->really_close();
55
    } else {
49
    } else {
56
57
        qDebug() << "signal " << sig << " received";
50
        qDebug() << "signal " << sig << " received";
58
    }
51
    }
59
}
52
}
60
61
#endif
53
#endif
62
54
63
GUI_Player::GUI_Player(Application *upapp, QWidget *parent) :
55
GUI_Player::GUI_Player(Application *upapp, QWidget *parent) :
64
    QMainWindow(parent), m_upapp(upapp), ui(new Ui::Upplay), m_covertempfile(0),
56
    QMainWindow(parent), m_upapp(upapp), ui(new Ui::Upplay), m_covertempfile(0),
65
    m_currentCoverReply(0)
57
    m_currentCoverReply(0)
...
...
201
    m_currentCoverReply = m_netmanager->get(QNetworkRequest(QUrl(URI)));
193
    m_currentCoverReply = m_netmanager->get(QNetworkRequest(QUrl(URI)));
202
}
194
}
203
195
204
void GUI_Player::setStyle(int style)
196
void GUI_Player::setStyle(int style)
205
{
197
{
206
207
    bool dark = (style == 1);
198
    bool dark = (style == 1);
208
    changeSkin(dark);
199
    changeSkin(dark);
209
    ui->action_Dark->setChecked(dark);
200
    ui->action_Dark->setChecked(dark);
210
}
201
}
211
202
212
void GUI_Player::changeSkin(bool dark)
203
void GUI_Player::changeSkin(bool dark)
213
{
204
{
205
    float multiplier = QSettings().value("wholeuiscale").toFloat();
206
    if (multiplier == 0)
207
        multiplier = 1.0;
214
    QString stylesheet = Style::get_style(dark);
208
    QString stylesheet = Style::get_style(dark, multiplier);
215
    qApp->setStyleSheet(stylesheet);
209
    qApp->setStyleSheet(stylesheet);
216
210
217
    if (dark) {
211
    if (dark) {
218
        Helper::setStyleSubDir("dark");
212
        Helper::setStyleSubDir("dark");
219
    } else {
213
    } else {