-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon themes: Active-Directory (line, duotone, color) #425
base: master
Are you sure you want to change the base?
Changes from all commits
ae1c494
cbc281f
023a61c
e99046e
f4379b0
338f326
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
#include "globals.h" | ||
#include "settings.h" | ||
#include "utils.h" | ||
#include "icon_manager/icon_manager.h" | ||
|
||
#include <QFileDialog> | ||
#include <QJsonDocument> | ||
|
@@ -341,7 +342,10 @@ void console_query_tree_init(ConsoleWidget *console) { | |
const QList<QStandardItem *> root_row = console->add_scope_item(ItemType_QueryFolder, console->domain_info_index()); | ||
auto root = root_row[0]; | ||
root->setText(QCoreApplication::translate("query", "Saved Queries")); | ||
root->setIcon(QIcon::fromTheme("folder")); | ||
|
||
const QIcon create_query_folder_icon = g_icon_manager->get_object_icon("folder-query"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not related to the commit topic. Better move to another commit or create refactor branch |
||
root->setIcon(create_query_folder_icon); | ||
|
||
root->setDragEnabled(false); | ||
root->setData(true, QueryItemRole_IsRoot); | ||
|
||
|
@@ -533,7 +537,9 @@ QModelIndex console_query_folder_create(ConsoleWidget *console, const QString &n | |
void console_query_folder_load(const QList<QStandardItem *> &row, const QString &name, const QString &description) { | ||
QStandardItem *main_item = row[0]; | ||
main_item->setData(description, QueryItemRole_Description); | ||
main_item->setIcon(QIcon::fromTheme("folder")); | ||
|
||
const QIcon create_query_folder_icon = g_icon_manager->get_object_icon("folder-query"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not related to the commit topic. Better move to another commit or create refactor branch |
||
main_item->setIcon(create_query_folder_icon); | ||
main_item->setData(false, QueryItemRole_IsRoot); | ||
|
||
row[QueryColumn_Name]->setText(name); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
#include "globals.h" | ||
#include "settings.h" | ||
#include "utils.h" | ||
#include "icon_manager/icon_manager.h" | ||
|
||
#include <QCoreApplication> | ||
#include <QFileDialog> | ||
|
@@ -41,8 +42,6 @@ | |
|
||
#define QUERY_ROOT "QUERY_ROOT" | ||
|
||
const QString query_item_icon = "emblem-system"; | ||
|
||
QueryItemImpl::QueryItemImpl(ConsoleWidget *console_arg) | ||
: ConsoleImpl(console_arg) { | ||
query_folder_impl = nullptr; | ||
|
@@ -68,7 +67,9 @@ void QueryItemImpl::fetch(const QModelIndex &index) { | |
// NOTE: reset icon and tooltip in case query is in the | ||
// "out of date" state | ||
QStandardItem *item = console->get_item(index); | ||
item->setIcon(QIcon::fromTheme(query_item_icon)); | ||
|
||
const QIcon create_query_item = g_icon_manager->get_object_icon("query-item"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not related to the commit topic. Better move to another commit or create refactor branch |
||
item->setIcon(create_query_item); | ||
item->setToolTip(""); | ||
|
||
const QString filter = index.data(QueryItemRole_Filter).toString(); | ||
|
@@ -197,7 +198,9 @@ void console_query_item_load(const QList<QStandardItem *> row, const QString &na | |
main_item->setData(filter_state, QueryItemRole_FilterState); | ||
main_item->setData(base, QueryItemRole_Base); | ||
main_item->setData(scope_is_children, QueryItemRole_ScopeIsChildren); | ||
main_item->setIcon(QIcon::fromTheme(query_item_icon)); | ||
|
||
const QIcon create_query_item = g_icon_manager->get_object_icon("query-item"); | ||
main_item->setIcon(create_query_item); | ||
|
||
row[QueryColumn_Name]->setText(name); | ||
row[QueryColumn_Description]->setText(description); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest dividing theme changing feature and new themes package addition (main icon too) into two pull requests, but I am not sure about it.