Core: Improve themeing of LineEdit icons (search, clear, ...)

...by providing a specific theme color role PanelTextColorMid.
Also, this fixes the opacity of editclear.png and magnifier.png

Change-Id: I0293eaa397a0b64595ddd66f608bdfe9f7b8e705
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2015-12-02 12:06:56 +01:00
parent 6221a5b591
commit 93a6ecfb07
10 changed files with 7 additions and 4 deletions

View File

@@ -83,6 +83,7 @@ PanelButtonToolBackgroundColorHover=hoverBackground
PanelStatusBarBackgroundColor=shadowBackground
PanelsWidgetSeparatorLineColor=0
PanelTextColorDark=text
PanelTextColorMid=ffa0a0a0
PanelTextColorLight=text
ProgressBarColorError=error
ProgressBarColorFinished=ff5aaa3c

View File

@@ -78,6 +78,7 @@ PanelButtonToolBackgroundColorHover=25ffffff
PanelStatusBarBackgroundColor=ffff0000
PanelsWidgetSeparatorLineColor=ffbfbcb8
PanelTextColorDark=darkText
PanelTextColorMid=ff909090
PanelTextColorLight=brightText
ProgressBarColorError=d2ff3c00
ProgressBarColorFinished=ff5aaa3c

View File

@@ -112,6 +112,7 @@ public:
PanelStatusBarBackgroundColor,
PanelsWidgetSeparatorLineColor,
PanelTextColorDark,
PanelTextColorMid,
PanelTextColorLight,
ProgressBarColorError,
ProgressBarColorFinished,

View File

@@ -37,7 +37,7 @@ namespace Utils {
namespace Icons {
const Utils::Icon EDIT_CLEAR({
{QLatin1String(":/core/images/editclear.png"), Utils::Theme::BackgroundColorHover}}, Utils::Icon::Style::Tinted);
{QLatin1String(":/core/images/editclear.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::Style::Tinted);
} // namespace Icons
} // namespace Utils

View File

@@ -90,7 +90,7 @@ const Utils::Icon NEXT({
const Utils::Icon PREV({
{QLatin1String(":/core/images/prev.png"), Utils::Theme::IconsNavigationArrowsColor}});
const Utils::Icon MAGNIFIER({
{QLatin1String(":/core/images/magnifier.png"), Utils::Theme::BackgroundColorHover}}, Utils::Icon::Style::Tinted);
{QLatin1String(":/core/images/magnifier.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::Style::Tinted);
const Utils::Icon CLEAN_PANE({
{QLatin1String(":/core/images/clean_pane_small.png"), Utils::Theme::IconsBaseColor}});
const Utils::Icon RELOAD({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 637 B

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 B

After

Width:  |  Height:  |  Size: 338 B

View File

@@ -3252,7 +3252,7 @@
transform="translate(-139,-80)"
style="">
<rect
style="opacity:0.60100002;fill:#ffffff;fill-opacity:1;"
style="fill:#ffffff;fill-opacity:1"
id="rect3817-2-9-1-9-6"
width="16"
height="16"
@@ -3291,7 +3291,7 @@
id="src/plugins/coreplugin/images/magnifier"
transform="translate(37,-80)">
<rect
style="opacity:0.60100002;fill:#ffffff;fill-opacity:1"
style="fill:#ffffff;fill-opacity:1"
id="rect3817-2-9-1-9-6-0"
width="17"
height="11"

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB