home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ge2301" data-source="post: 1118114" data-attributes="member: 145639"><p>[USER=48495]@morpheus_xx[/USER]</p><p>Trying to come more into xaml. More things became clear, but still hard because the complete structure is huge.</p><p>Therefore I try to start with easy things.</p><p></p><p>Blue=modified</p><p>Red=not working</p><p></p><p><u>Buttons.xaml</u></p><p style="margin-left: 20px"> <!-- ***************************** Storyboards ******************************** --></p> <p style="margin-left: 20px"> <ResourceWrapper x:Key="SquareButtonZoomCoefficient" Resource="<span style="color: #0000ff"><strong>1.04</strong></span>"/></p> <p style="margin-left: 20px"> <ResourceWrapper x:Key="WideButtonZoomCoefficientX" Resource="<span style="color: #000000">1.02</span>"/></p> <p style="margin-left: 20px"> <ResourceWrapper x:Key="WideButtonZoomCoefficientY" Resource="<span style="color: #0000ff"><strong>1.04</strong></span>"/></p><p></p><p><em>Currently wide and square buttons are separated, but even though the move-over sclaing effects differ a lot dependend on button size (e.g. Browse Folder in "mediahub").</em></p><p><em>Is it possible to to use instead of a scaling factor a fixed "scaling-offset" that is added to all directions? I was checking online, but couldn't find something comparable.</em></p><p></p><p style="margin-left: 20px"> <!-- Home items button style --></p><p> <Style x:Key="HomeButtonControlStyle" TargetType="{x:Type Control}"></p><p style="margin-left: 20px"> <Setter Property="Template"></p><p> <Setter.Value></p><p> <ControlTemplate></p><p style="margin-left: 20px"> <Border x:Name="ButtonControlRectangle"</p><p> IsVisible ="False"</p><p> CornerRadius="{ThemeResource ButtonControlRadiusX}"</p><p> BorderBrush="{ThemeResource MediaItemsFocusedBorderBrush}"</p><p> BorderThickness="<span style="color: #0000ff"><strong>2.5</strong></span>"</p><p> Margin="<span style="color: #0000ff"><strong>-3</strong></span>"/></p><p style="margin-left: 20px"><span style="color: #ff0000"> <Border.Effect></span></p> <p style="margin-left: 20px"><span style="color: #ff0000"> <BlurEffect Radius="10"/></span></p> <p style="margin-left: 20px"><span style="color: #ff0000"> </Border.Effect></span></p><p> </ControlTemplate></p><p> </Setter.Value></p><p> </Setter></p><p> </Style></p><p></p><p><u>Brushes.xaml</u></p><p style="margin-left: 20px"> <ResourceWrapper x:Key="MediaItemsFocusedBorderBrush"></p> <p style="margin-left: 20px"> <LinearGradientBrush StartPoint="0,0" EndPoint="1,1"></p><p style="margin-left: 20px"><span style="color: #ff0000"> <GradientStop Color="{ThemeResource HomeNonFocusedColor}" Offset="0"/></span></p> <p style="margin-left: 20px"><span style="color: #ff0000"> <GradientStop Color="{ThemeResource TextColor}" Offset="0.30"/></span></p> <p style="margin-left: 20px"><span style="color: #ff0000"> <GradientStop Color="{ThemeResource TextColor}" Offset="0.70"/></span></p> <p style="margin-left: 20px"> <GradientStop Color="{<span style="color: #0000ff">ThemeResource HomeNonFocusedColor</span>}" Offset="1"/></p></p> <p style="margin-left: 20px"></LinearGradientBrush></ResourceWrapper></p><p></p><p><em>For some reasons the gradient brush does not work. Visible is only the value of the stop at offset="1".</em></p><p><em>I think since DX11 implementation this does not work any more and selectino borders are only grey.</em></p><p><em>In case it can not be fixed, I'd set the border color better to "<span style="color: #0000ff">TextColor</span>"</em></p><p></p><p><em>Currently looks like this:</em></p><p><em>[ATTACH]159805[/ATTACH]</em></p><p></p><p><em>Edit:</em></p><p><em>I just realized something interesting in above screenshot. The dropshadow of the huge "browse media"</em> button is smaller than the button in terms of height. In your posted screenshot for backdrops I didn't see this. I can reproduce same after restart of MP2.</p></blockquote><p></p>
[QUOTE="ge2301, post: 1118114, member: 145639"] [USER=48495]@morpheus_xx[/USER] Trying to come more into xaml. More things became clear, but still hard because the complete structure is huge. Therefore I try to start with easy things. Blue=modified Red=not working [U]Buttons.xaml[/U] [INDENT] <!-- ***************************** Storyboards ******************************** --> <ResourceWrapper x:Key="SquareButtonZoomCoefficient" Resource="[COLOR=#0000ff][B]1.04[/B][/COLOR]"/> <ResourceWrapper x:Key="WideButtonZoomCoefficientX" Resource="[COLOR=#000000]1.02[/COLOR]"/> <ResourceWrapper x:Key="WideButtonZoomCoefficientY" Resource="[COLOR=#0000ff][B]1.04[/B][/COLOR]"/>[/INDENT] [I]Currently wide and square buttons are separated, but even though the move-over sclaing effects differ a lot dependend on button size (e.g. Browse Folder in "mediahub"). Is it possible to to use instead of a scaling factor a fixed "scaling-offset" that is added to all directions? I was checking online, but couldn't find something comparable.[/I] [INDENT] <!-- Home items button style -->[/INDENT] <Style x:Key="HomeButtonControlStyle" TargetType="{x:Type Control}"> [INDENT] <Setter Property="Template">[/INDENT] <Setter.Value> <ControlTemplate> [INDENT] <Border x:Name="ButtonControlRectangle"[/INDENT] IsVisible ="False" CornerRadius="{ThemeResource ButtonControlRadiusX}" BorderBrush="{ThemeResource MediaItemsFocusedBorderBrush}" BorderThickness="[COLOR=#0000ff][B]2.5[/B][/COLOR]" Margin="[COLOR=#0000ff][B]-3[/B][/COLOR]"/> [INDENT][COLOR=#ff0000] <Border.Effect> <BlurEffect Radius="10"/> </Border.Effect>[/COLOR][/INDENT] </ControlTemplate> </Setter.Value> </Setter> </Style> [U]Brushes.xaml[/U] [INDENT] <ResourceWrapper x:Key="MediaItemsFocusedBorderBrush"> <LinearGradientBrush StartPoint="0,0" EndPoint="1,1"> [INDENT][COLOR=#ff0000] <GradientStop Color="{ThemeResource HomeNonFocusedColor}" Offset="0"/> <GradientStop Color="{ThemeResource TextColor}" Offset="0.30"/> <GradientStop Color="{ThemeResource TextColor}" Offset="0.70"/>[/COLOR] <GradientStop Color="{[COLOR=#0000ff]ThemeResource HomeNonFocusedColor[/COLOR]}" Offset="1"/>[/INDENT] </LinearGradientBrush></ResourceWrapper>[/INDENT] [I]For some reasons the gradient brush does not work. Visible is only the value of the stop at offset="1". I think since DX11 implementation this does not work any more and selectino borders are only grey. In case it can not be fixed, I'd set the border color better to "[COLOR=#0000ff]TextColor[/COLOR]"[/I] [I]Currently looks like this: [ATTACH]159805[/ATTACH][/I] [I]Edit: I just realized something interesting in above screenshot. The dropshadow of the huge "browse media"[/I] button is smaller than the button in terms of height. In your posted screenshot for backdrops I didn't see this. I can reproduce same after restart of MP2. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom