comparison src/gui/dialog/settings.cpp @ 77:6f7385bd334c

*: update formatted all source files, no more subclassing QThread... many other changes :)
author Paper <mrpapersonic@gmail.com>
date Fri, 06 Oct 2023 06:18:53 -0400
parents 3364fadc8a36
children
comparison
equal deleted inserted replaced
76:3364fadc8a36 77:6f7385bd334c
14 page_title->setWordWrap(false); 14 page_title->setWordWrap(false);
15 page_title->setFrameShape(QFrame::Panel); 15 page_title->setFrameShape(QFrame::Panel);
16 page_title->setFrameShadow(QFrame::Sunken); 16 page_title->setFrameShadow(QFrame::Sunken);
17 17
18 QFont font(page_title->font()); 18 QFont font(page_title->font());
19 font.setPixelSize(13); 19 font.setPixelSize(12);
20 font.setWeight(QFont::Bold); 20 font.setWeight(QFont::Bold);
21 page_title->setFont(font); 21 page_title->setFont(font);
22 22
23 QPalette pal = page_title->palette(); 23 QPalette pal = page_title->palette();
24 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB)); 24 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB));
73 // sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png")); 73 // sidebar->AddItem(tr("Torrents"), SideBar::CreateIcon(":/icons/24x24/feed.png"));
74 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png")); 74 // sidebar->AddItem(tr("Advanced"), SideBar::CreateIcon(":/icons/24x24/gear.png"));
75 sidebar->setIconSize(QSize(24, 24)); 75 sidebar->setIconSize(QSize(24, 24));
76 sidebar->setFrameShape(QFrame::Box); 76 sidebar->setFrameShape(QFrame::Box);
77 77
78 QFont font(sidebar->font());
79 font.setPixelSize(12);
80 sidebar->setFont(font);
81
82 QPalette pal(sidebar->palette()); 78 QPalette pal(sidebar->palette());
83 sidebar->SetBackgroundColor(pal.color(QPalette::Base)); 79 sidebar->SetBackgroundColor(pal.color(QPalette::Base));
84 80
85 sidebar->setFixedWidth(158); 81 sidebar->setFixedWidth(158);
86 sidebar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); 82 sidebar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);