Rework positioning of volumebar / mute icon / info clock

- Is required for custom icons


Origin commit data
------------------
Commit: cfd7b4b16b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-10 (Fri, 10 May 2013)

Origin message was:
------------------
* Rework positioning of volumebar / mute icon / info clock

- Is required for custom icons
This commit is contained in:
Michael Liebmann
2013-05-10 12:25:48 +02:00
parent 60b0c9dfd6
commit f5abed1dd0
6 changed files with 117 additions and 87 deletions

View File

@@ -39,6 +39,7 @@ CAudioMute::CAudioMute()
mute_dx = 0;
mute_dy = 0;
mute_ay_old = -1;
CVolumeHelper::getInstance()->refresh();
CVolumeHelper::getInstance()->getMuteIconDimensions(&mute_ax, &mute_ay, &mute_dx, &mute_dy);
mIcon = new CComponentsPicture(mute_ax, mute_ay, mute_dx, mute_dy, NEUTRINO_ICON_BUTTON_MUTE);
}
@@ -74,7 +75,7 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
mute_ay_old = mute_ay;
}
if ((g_settings.mode_clock) && (doInit))
CInfoClock::getInstance(true)->ClearDisplay();
CInfoClock::getInstance()->ClearDisplay();
if (newValue)
mIcon->paint();
@@ -82,6 +83,6 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
mIcon->hide();
if (doInit)
CInfoClock::getInstance(true)->Init(true);
CVolumeHelper::getInstance()->refresh();
}
}