Changed the toggle column to app icon.

This commit is contained in:
apoorv569
2021-06-09 07:03:20 +05:30
parent 87b347ff2f
commit 08aa1df2ca
3 changed files with 455 additions and 33 deletions
+12 -2
View File
@@ -1,9 +1,13 @@
#include <deque>
#include <exception>
#include <wx/dataview.h>
#include <wx/dvrenderers.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/string.h>
#include <wx/stringimpl.h>
#include <wx/variant.h>
#include "Database.hpp"
#include "SettingsDialog.hpp"
@@ -871,9 +875,14 @@ Database::LoadDatabase(wxVector<wxVector<wxVariant>>& vecSet,
trash_tree.AppendItem(trash_item, filename);
else
{
wxVariant icon_c, icon_gs;
icon_c << wxDataViewIconText(wxEmptyString, wxIcon("../assets/icons/icon-hive_16x16.png"));
icon_gs << wxDataViewIconText(wxEmptyString, wxIcon("../assets/icons/icon-hive_16x16-gs.png"));
if (favorite == 1)
{
vec.push_back(true);
// vec.push_back(true);
vec.push_back(icon_c);
wxLogDebug("Loading collection items..");
@@ -923,7 +932,8 @@ Database::LoadDatabase(wxVector<wxVector<wxVariant>>& vecSet,
}
else
vec.push_back(false);
// vec.push_back(false);
vec.push_back(icon_gs);
if (show_extension)
{