mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user