-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anton Pronin
committed
Sep 7, 2022
1 parent
a2f4238
commit 7352f78
Showing
23 changed files
with
142 additions
and
122 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion
2
src/admc/admc-icons/index.theme → src/admc/AdmcDefault/index.theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[Icon Theme] | ||
Name=admc-icons | ||
Name=AdmcDefault | ||
Comment=icons for app admc | ||
|
||
DisplayDepth=32 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<RCC> | ||
<qresource prefix="/icons"> | ||
<file>admc-icons/64x64/emblem-system.svg</file> | ||
<file>admc-icons/64x64/computer.svg</file> | ||
<file>admc-icons/64x64/folder.svg</file> | ||
<file>admc-icons/64x64/preferences-other.svg</file> | ||
<file>admc-icons/64x64/network-server.svg</file> | ||
<file>admc-icons/64x64/folder-templates.svg</file> | ||
<file>admc-icons/64x64/system-users.svg</file> | ||
<file>admc-icons/64x64/folder-documents.svg</file> | ||
<file>admc-icons/64x64/avatar-default.svg</file> | ||
<file>admc-icons/64x64/volume.svg</file> | ||
<file>admc-icons/index.theme</file> | ||
<file>admc-icons/theme</file> | ||
<file>AdmcDefault/64x64/emblem-system.svg</file> | ||
<file>AdmcDefault/64x64/computer.svg</file> | ||
<file>AdmcDefault/64x64/folder.svg</file> | ||
<file>AdmcDefault/64x64/preferences-other.svg</file> | ||
<file>AdmcDefault/64x64/network-server.svg</file> | ||
<file>AdmcDefault/64x64/folder-templates.svg</file> | ||
<file>AdmcDefault/64x64/system-users.svg</file> | ||
<file>AdmcDefault/64x64/folder-documents.svg</file> | ||
<file>AdmcDefault/64x64/avatar-default.svg</file> | ||
<file>AdmcDefault/64x64/volume.svg</file> | ||
<file>AdmcDefault/index.theme</file> | ||
</qresource> | ||
<qresource prefix="/"/> | ||
</RCC> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
#ifndef QUERY_THEME_IMPL_H | ||
#define QUERY_THEME_IMPL_H | ||
#include <QString> | ||
#include <QMenu> | ||
#include <QDir> | ||
#include <console_widget/console_impl.h> | ||
|
||
class SelectThemeImpl : public ConsoleImpl | ||
{ | ||
Q_OBJECT | ||
public: | ||
SelectThemeImpl(ConsoleWidget *console_arg); | ||
SelectThemeImpl(ConsoleWidget *console_arg, QMenu* menu_theme); | ||
void apply_theme(QString theme_name); | ||
void apply_default_theme(); | ||
QString add_new_theme(); | ||
QMenu* format_theme_list(QString active_theme_name, QStringList available_app_themes); | ||
QList<QAction* >* generate_theme_action_list(); | ||
void restore_theme_menu(); | ||
|
||
private slots: | ||
void set_theme(const QString& themeName); | ||
QStringList get_available_theme_list(); | ||
|
||
private: | ||
QString read_theme_file(); | ||
QString parse_theme_name(QString theme_file_name); | ||
void add_theme_to_list(QString theme_name); | ||
QStringList parse_theme_names(const QStringList & theme_path_list); | ||
QStringList get_themes_from_dir(QString path_to_dir); | ||
|
||
QMenu * menu_theme; | ||
|
||
const QString app_theme_path = ":/icons"; | ||
const QString system_icons_dir_path = "/usr/share/icons"; | ||
QString user_icons_dir_path; | ||
|
||
const QString theme_name_regex_pattern = "Name=.*"; | ||
const QString default_theme_name = "admc-icons"; | ||
}; | ||
|
||
#endif // QUERY_THEME_IMPL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.