mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Fixed gtk
This commit is contained in:
parent
b7f62fd938
commit
06483c9479
4 changed files with 2 additions and 8 deletions
|
|
@ -68,12 +68,12 @@ void TopWindow::Init()
|
|||
|
||||
int Ctrl::GetGtkTitleBarHeight(const TopWindow *tw)
|
||||
{
|
||||
return max(tw->custom_titlebar_cy, IsUHDMode() ? 60 : 31);
|
||||
return max(tw->custom_titlebar_cy, DPI(31));
|
||||
}
|
||||
|
||||
int Ctrl::GetGtkTitleBarButtonWidth()
|
||||
{
|
||||
return IsUHDMode() ? 94 : 47;
|
||||
return DPI(47);
|
||||
}
|
||||
|
||||
void TopWindow::SyncIcons()
|
||||
|
|
|
|||
|
|
@ -31,11 +31,7 @@ void IconShow::Paint(Draw& w)
|
|||
return DPISmartRescale(image, scale * image.GetSize() / image_scale);
|
||||
};
|
||||
|
||||
Size sz100 = GetSize(DPI_100);
|
||||
Size sz150 = GetSize(DPI_150);
|
||||
Size sz200 = GetSize(DPI_200);
|
||||
Size sz300 = GetSize(DPI_300);
|
||||
|
||||
if(sz300.cx * sz300.cy > 20000) {
|
||||
w.DrawRect(sz, SColorPaper);
|
||||
w.DrawImage(DPI(5), DPI(5), image);
|
||||
|
|
|
|||
|
|
@ -233,7 +233,6 @@ MainConfigDlg::MainConfigDlg(const Workspace& wspc_) : wspc(wspc_) {
|
|||
append.SetImage(IdeImg::add()) << [=] {
|
||||
FlagsDlg cfg;
|
||||
if(cfg.Run() == IDOK) {
|
||||
int q = config.GetCount();
|
||||
cfg.Set(config.Add());
|
||||
LoadList(config.GetCount() - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue