Skip to content

Commit

Permalink
fix: search icon can't change with theme change
Browse files Browse the repository at this point in the history
add search icon in dark theme and light theme respectively

Log: linuxdeepin/developer-center#6230
  • Loading branch information
wangfei authored and kegechen committed Feb 28, 2024
1 parent cd1f2fd commit 963e3c7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
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 src/widgets/assets/icons/dtk-icon-theme.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
<file>light/texts/spacer_fixed_34px.svg</file>
<file>light/texts/spacer_stretch_34px.svg</file>
<file>light/texts/fold_14px.svg</file>
<file>light/texts/search_left_action_20px.svg</file>
<file>dark/texts/spacer_fixed_34px.svg</file>
<file>dark/texts/spacer_stretch_34px.svg</file>
<file>dark/texts/fold_14px.svg</file>
<file>dark/texts/search_left_action_20px.svg</file>
<file>dark/actions/printer_lrtb_1_24px.svg</file>
<file>dark/actions/printer_lrtb_2_24px.svg</file>
<file>dark/actions/printer_lrtb_3_24px.svg</file>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/widgets/dsearchedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void DSearchEditPrivate::init()

action = new QAction(q);
action->setObjectName("_d_search_leftAction");
action->setIcon(DIconTheme::findQIcon("search_indicator"));
action->setIcon(DIconTheme::findQIcon("search_left_action"));
q->lineEdit()->addAction(action, QLineEdit::LeadingPosition);
action->setVisible(false);
iconbtn->setIconSize(QSize(20, 20));
Expand Down

0 comments on commit 963e3c7

Please sign in to comment.