optimize icons
This commit is contained in:
@@ -37,18 +37,15 @@ namespace Noggit
|
||||
|
||||
temp_btn->ensurePolished();
|
||||
|
||||
QColor color;
|
||||
if (state == QIcon::On)
|
||||
{
|
||||
color = temp_btn->palette().color(QPalette::WindowText);
|
||||
painter->setPen(temp_btn->palette().color(QPalette::WindowText));
|
||||
}
|
||||
else if (state == QIcon::Off)
|
||||
{
|
||||
color = temp_btn->palette().color(QPalette::Disabled, QPalette::WindowText);
|
||||
painter->setPen(temp_btn->palette().color(QPalette::Disabled, QPalette::WindowText));
|
||||
}
|
||||
|
||||
painter->setPen(color);
|
||||
|
||||
delete temp_btn;
|
||||
|
||||
|
||||
|
||||
@@ -37,18 +37,15 @@ namespace Noggit
|
||||
|
||||
temp_btn->ensurePolished();
|
||||
|
||||
QColor color;
|
||||
if (state == QIcon::On)
|
||||
{
|
||||
color = temp_btn->palette().color(QPalette::WindowText);
|
||||
painter->setPen(temp_btn->palette().color(QPalette::WindowText));
|
||||
}
|
||||
else if (state == QIcon::Off)
|
||||
{
|
||||
color = temp_btn->palette().color(QPalette::Disabled, QPalette::WindowText);
|
||||
painter->setPen(temp_btn->palette().color(QPalette::Disabled, QPalette::WindowText));
|
||||
}
|
||||
|
||||
painter->setPen(color);
|
||||
|
||||
|
||||
delete temp_btn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user