- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Thread starter
- Moderator
- #11
The OSD and dialog styles are getting better.
For the OSD I introduced a OSD.xaml theme file (in the Reflexion skin), that allows the definition of the major OSD shape in one single place. It has placeholders included for the progress bar, player controls and title/information fields.
https://github.com/MediaPortal/MediaPortal-2/commit/5854f2070e53876dfe87fac4a9cbefe794d41da9#L5L11
To make the former Reflexion OSD look like Titan, it was a chance of around 10 lines of code: https://github.com/MediaPortal/MediaPortal-2/commit/5854f2070e53876dfe87fac4a9cbefe794d41da9#L5L11
Things to note:
Again I defined the OSD colors by resources in colors.xaml. This allows global changing the colors for new color themes.
The menu style got adopted as base for all dialogs now. The result is shown in next screen:
This is again a difference to the orginal MP1 version: Titan has one single image shape as background for dialogs. MP2 does define the style once, but it is freely scalable. You can see here two open dialogs using a flexible width (based on content).
Sometimes it might not be wanted to use flexible sizes, but this can simply be solved by putting in a fixed "Width=xxx". I do prefer the flexible way for now.
For the OSD I introduced a OSD.xaml theme file (in the Reflexion skin), that allows the definition of the major OSD shape in one single place. It has placeholders included for the progress bar, player controls and title/information fields.
https://github.com/MediaPortal/MediaPortal-2/commit/5854f2070e53876dfe87fac4a9cbefe794d41da9#L5L11
To make the former Reflexion OSD look like Titan, it was a chance of around 10 lines of code: https://github.com/MediaPortal/MediaPortal-2/commit/5854f2070e53876dfe87fac4a9cbefe794d41da9#L5L11
Things to note:
Again I defined the OSD colors by resources in colors.xaml. This allows global changing the colors for new color themes.
The menu style got adopted as base for all dialogs now. The result is shown in next screen:
This is again a difference to the orginal MP1 version: Titan has one single image shape as background for dialogs. MP2 does define the style once, but it is freely scalable. You can see here two open dialogs using a flexible width (based on content).
Sometimes it might not be wanted to use flexible sizes, but this can simply be solved by putting in a fixed "Width=xxx". I do prefer the flexible way for now.