Skip to content

Commit

Permalink
Fix: Use correct scaling of logo and update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ifexception committed Feb 18, 2023
1 parent d872689 commit e3f2918
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 14 deletions.
Binary file modified logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/taskable.ico
Binary file not shown.
5 changes: 4 additions & 1 deletion src/dialogs/categoriesdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ bool CategoriesDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
7 changes: 5 additions & 2 deletions src/dialogs/categorydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ bool CategoryDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down Expand Up @@ -210,7 +213,7 @@ void CategoryDialog::DataToControls()
std::unique_ptr<model::CategoryModel> category = nullptr;

try {
category =mCategoryData.GetById(mCategoryId);
category = mCategoryData.GetById(mCategoryId);
} catch (const sqlite::sqlite_exception& e) {
pLogger->error("Error occured in get_category_by_id() - {0:d} : {1}", e.get_code(), e.what());
}
Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/checkforupdatedlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ void CheckForUpdateDialog::Create(wxWindow* parent,
CreateControls();

GetSizer()->Fit(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ bool ClientDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/editlistdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ bool EditListDialog::Create(wxWindow* parent,
DataToControls();

GetSizer()->Fit(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/employerdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ bool EmployerDialog::Create(wxWindow* parent,
}

GetSizer()->Fit(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Centre();
}

Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/exporttocsvdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ bool ExportToCsvDialog::Create(wxWindow* parent,
FillControls();

GetSizer()->Fit(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Centre();
}
return created;
Expand Down
4 changes: 4 additions & 0 deletions src/dialogs/preferencesdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ bool PreferencesDialog::Create(wxWindow* parent,
bool created = wxPropertySheetDialog::Create(parent, windowId, title, position, size, style, name);
if (created) {
CreateControls();

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

}
return created;
}
Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/projectdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ bool ProjectDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/stopwatchtaskdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ bool StopwatchTaskDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();

if (cfg::ConfigurationProvider::Get().Configuration->IsShowInTray()) {
Expand Down
5 changes: 4 additions & 1 deletion src/dialogs/taskitemdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ bool TaskItemDialog::Create(wxWindow* parent,

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
4 changes: 3 additions & 1 deletion src/dialogs/weeklytaskviewdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ bool WeeklyTaskViewDialog::Create(wxWindow* parent,
ConfigureEventBindings();
FillControls();

SetIcon(rc::GetProgramIcon());
wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

Center();
}

Expand Down
4 changes: 3 additions & 1 deletion src/frame/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ bool MainFrame::CreateFrame()

bool success = Create();
SetMinSize(wxSize(850, 580));
SetIcon(rc::GetProgramIcon());

wxIconBundle iconBundle("AppIcon", 0);
SetIcons(iconBundle);

if (cfg::ConfigurationProvider::Get().Configuration->IsBackupEnabled()) {
svc::DatabaseBackupDeleter dbBackupDeleter;
Expand Down
4 changes: 3 additions & 1 deletion src/frame/taskbaricon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ TaskBarIcon::TaskBarIcon(wxFrame* parent,

void TaskBarIcon::SetTaskBarIcon()
{
SetIcon(wxIcon(rc::GetProgramIcon()), common::GetProgramName());
wxIconBundle iconBundle("AppIcon", 0);

SetIcon(iconBundle.GetIcon(wxDefaultSize), common::GetProgramName());
}

wxMenu* TaskBarIcon::CreatePopupMenu()
Expand Down

0 comments on commit e3f2918

Please sign in to comment.