Skip to content

light/dark mode themed icons #659

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion QLog.pro
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ FORMS += \
RESOURCES += \
i18n/i18n.qrc \
res/flags/flags.qrc \
res/icons/icons.qrc \
res/icons.qrc \
res/res.qrc

OTHER_FILES += \
Expand Down
2 changes: 2 additions & 0 deletions core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ int main(int argc, char* argv[])

splash.showMessage(QObject::tr("Starting Application"), Qt::AlignBottom|Qt::AlignCenter);

QIcon::setThemeName("light");

startRigThread();
startRotThread();
startCWKeyerThread();
Expand Down
2 changes: 1 addition & 1 deletion models/LogbookModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ QVariant LogbookModel::data(const QModelIndex &index, int role) const
{
QVariant value = QSqlTableModel::data(index, Qt::DisplayRole);
if (value.toString() == "Y") {
return QIcon(":/icons/done-24px.svg");
return QIcon::fromTheme("done");
}
// else {
// return QIcon(":/icons/close-24px.svg");
Expand Down
64 changes: 64 additions & 0 deletions res/icons.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<RCC>
<qresource prefix="/">
<file>icons/light/svg/alert.svg</file>
<file>icons/light/svg/baseline-play_arrow.svg</file>
<file>icons/light/svg/baseline-play_back.svg</file>
<file>icons/light/svg/baseline-play_down.svg</file>
<file>icons/light/svg/baseline-play_up.svg</file>
<file>icons/light/svg/baseline-search.svg</file>
<file>icons/light/svg/baseline-stop.svg</file>
<file>icons/light/svg/clear-button.svg</file>
<file>icons/light/svg/close.svg</file>
<file>icons/light/svg/cloud_download.svg</file>
<file>icons/light/svg/cloud_upload.svg</file>
<file>icons/light/svg/connect.svg</file>
<file>icons/light/svg/disconnect.svg</file>
<file>icons/light/svg/done.svg</file>
<file>icons/light/svg/filter_list.svg</file>
<file>icons/light/svg/light-dark.svg</file>
<file>icons/light/svg/menu.svg</file>
<file>icons/light/svg/new-window.svg</file>
<file>icons/light/svg/password.svg</file>
<file>icons/light/svg/search-globe_green.svg</file>
<file>icons/light/svg/search-globe_orange.svg</file>
<file>icons/light/svg/search-globe_red.svg</file>
<file>icons/light/svg/search-globe.svg</file>
<file>icons/light/svg/zoom_in.svg</file>
<file>icons/light/svg/zoom_out.svg</file>
<file>icons/light/index.theme</file>
<file>icons/light/svg/alert-active.svg</file>
<file>icons/light/svg/arrow-undo.svg</file>
<file>icons/light/svg/download.svg</file>
<file>icons/light/svg/cancel.svg</file>
<file>icons/dark/svg/alert-active.svg</file>
<file>icons/dark/svg/zoom_out.svg</file>
<file>icons/dark/svg/done.svg</file>
<file>icons/dark/svg/download.svg</file>
<file>icons/dark/svg/filter_list.svg</file>
<file>icons/dark/svg/light-dark.svg</file>
<file>icons/dark/svg/menu.svg</file>
<file>icons/dark/svg/new-window.svg</file>
<file>icons/dark/svg/password.svg</file>
<file>icons/dark/svg/search-globe_green.svg</file>
<file>icons/dark/svg/search-globe_orange.svg</file>
<file>icons/dark/svg/search-globe_red.svg</file>
<file>icons/dark/svg/search-globe.svg</file>
<file>icons/dark/svg/zoom_in.svg</file>
<file>icons/dark/svg/alert.svg</file>
<file>icons/dark/svg/arrow-undo.svg</file>
<file>icons/dark/svg/baseline-play_arrow.svg</file>
<file>icons/dark/svg/baseline-play_back.svg</file>
<file>icons/dark/svg/baseline-play_down.svg</file>
<file>icons/dark/svg/baseline-play_up.svg</file>
<file>icons/dark/svg/baseline-search.svg</file>
<file>icons/dark/svg/baseline-stop.svg</file>
<file>icons/dark/svg/cancel.svg</file>
<file>icons/dark/svg/clear-button.svg</file>
<file>icons/dark/svg/close.svg</file>
<file>icons/dark/svg/cloud_download.svg</file>
<file>icons/dark/svg/cloud_upload.svg</file>
<file>icons/dark/svg/connect.svg</file>
<file>icons/dark/svg/disconnect.svg</file>
<file>icons/dark/index.theme</file>
</qresource>
</RCC>
1 change: 0 additions & 1 deletion res/icons/alert.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/baseline-pause-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/baseline-play_arrow-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/baseline-play_back-24px.svg

This file was deleted.

2 changes: 0 additions & 2 deletions res/icons/baseline-play_down-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/baseline-play_up-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/baseline-search-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/cancel-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/check_circle-24px.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/icons/clear-button.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/close-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/cloud_download-24px.svg

This file was deleted.

1 change: 0 additions & 1 deletion res/icons/cloud_upload-24px.svg

This file was deleted.

17 changes: 17 additions & 0 deletions res/icons/dark/index.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Icon Theme]
Name=dark
Comment=dark theme icons

#PanelDefault=22
#PanelSizes=22

#https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

Directories=svg

[svg]
Size=24
Context=Applications
MinSize=16
MaxSize=512
Type=Scalable
3 changes: 3 additions & 0 deletions res/icons/dark/svg/alert-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions res/icons/dark/svg/alert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/arrow-undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/baseline-play_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/baseline-play_back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions res/icons/dark/svg/baseline-play_down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/baseline-play_up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions res/icons/dark/svg/baseline-search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/cancel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions res/icons/dark/svg/clear-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icons/dark/svg/cloud_download.svg
1 change: 1 addition & 0 deletions res/icons/dark/svg/cloud_upload.svg
2 changes: 1 addition & 1 deletion res/icons/connect.svg → res/icons/dark/svg/connect.svg
2 changes: 1 addition & 1 deletion res/icons/done-24px.svg → res/icons/dark/svg/done.svg
1 change: 1 addition & 0 deletions res/icons/dark/svg/download.svg
1 change: 1 addition & 0 deletions res/icons/dark/svg/filter_list.svg
Loading
Loading