svx/source/dialog/srchdlg.cxx | 1 + svx/source/form/labelitemwindow.cxx | 1 + svx/uiconfig/ui/findreplacedialog.ui | 11 ++++++----- svx/uiconfig/ui/labelbox.ui | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-)
New commits: commit 5a622f1a29d249a512cc24f99d189f748623c678 Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Tue Nov 28 11:10:58 2023 +0100 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Tue Nov 28 14:33:18 2023 +0100 Related tdf#156227 - Find/quickfind design Themed icons look bad when drawn white on light blue; using the same icon as on the infobar makes more sense Change-Id: I6b4fd2bac7dce41b8196c702e0f0dc87712e2b8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160017 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index b5cf7bcf34fd..b1c87a6db7c8 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -344,6 +344,7 @@ SvxSearchDialog::SvxSearchDialog(weld::Window* pParent, SfxChildWindow* pChildWi m_xSearchLabel->set_font_color(Color(0x00, 0x47, 0x85)); this->SetSearchLabel(""); // hide the message but keep the box height + m_xSearchIcon->set_size_request(24, 24); // vcl/res/infobar.png is 32x32 - too large here m_xReplaceTmplLB->make_sorted(); m_xReplaceAttrText->hide(); diff --git a/svx/source/form/labelitemwindow.cxx b/svx/source/form/labelitemwindow.cxx index bdff03e060f2..1ccbe6c5d156 100644 --- a/svx/source/form/labelitemwindow.cxx +++ b/svx/source/form/labelitemwindow.cxx @@ -19,6 +19,7 @@ LabelItemWindow::LabelItemWindow(vcl::Window* pParent, const OUString& rLabel) m_xLabel->set_label(rLabel); m_xImage->hide(); + m_xImage->set_size_request(24, 24); // vcl/res/infobar.png is 32x32 - too large here SetOptimalSize(); diff --git a/svx/uiconfig/ui/findreplacedialog.ui b/svx/uiconfig/ui/findreplacedialog.ui index 57a16e666a2f..e915a647f710 100644 --- a/svx/uiconfig/ui/findreplacedialog.ui +++ b/svx/uiconfig/ui/findreplacedialog.ui @@ -290,15 +290,16 @@ <object class="GtkImage" id="searchicon"> <property name="visible">True</property> <property name="can-focus">False</property> + <property name="valign">center</property> <property name="margin-start">6</property> <property name="margin-end">3</property> <property name="margin-top">3</property> <property name="margin-bottom">3</property> - <property name="icon-name">res/info.png</property> + <property name="icon-name">vcl/res/infobox.png</property> <child internal-child="accessible"> - <object class="AtkObject" id="searchicon-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="findreplacedialog|searchicon">Search icon</property> - </object> + <object class="AtkObject" id="searchicon-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="findreplacedialog|searchicon">Search icon</property> + </object> </child> </object> <packing> @@ -323,7 +324,7 @@ <property name="xalign">0</property> <child internal-child="accessible"> <object class="AtkObject" id="searchlabel-atkobject"> - <property name="AtkObject::accessible-role">notification</property> + <property name="AtkObject::accessible-role">notification</property> </object> </child> </object> diff --git a/svx/uiconfig/ui/labelbox.ui b/svx/uiconfig/ui/labelbox.ui index f77cd5da7f4e..29210661b91c 100644 --- a/svx/uiconfig/ui/labelbox.ui +++ b/svx/uiconfig/ui/labelbox.ui @@ -15,7 +15,7 @@ <property name="margin-start">6</property> <property name="margin-top">3</property> <property name="margin-bottom">3</property> - <property name="icon-name">res/info.png</property> + <property name="icon-name">vcl/res/infobox.png</property> </object> <packing> <property name="expand">False</property>