Blue Vision (6 Viewers)

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    We will miss you...;)
    Good luck on your moving. You know, 3 times moving is like one time burned down...:D
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Home Country
    Australia Australia
    Go to the Image folder of the skin. You can find the symbols. Their filename corresponds to the guid-ID which is used in the code.

    yes, think i understand which images they are? but im trying to understand how the rollover works - normal grey version then rollover larger greg version then white when selected?? can you provide the file(s) that has the code?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Home Country
    Australia Australia
    thanks. can you tell me is it possible to modify the rollover version i can see the code that increases it but how/were/if possible can i add code so that it changes the colour on rollover?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    It's not the color that changes, only the "amount of transparency" (the Opacity):
    The image itself is white, if you put 0.4 as Opacity it is only 40% of solid white. So the background shines through which gives a mixed color with its background.
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Home Country
    Australia Australia
    kind of what i thought. can you point out where the code to change the opacity for just the rollover?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Hmm, not sure if I understand you correctly. It is the place where I pointed to: https://github.com/MediaPortal/Medi.../themes/default/styles/Buttons.xaml#L317-L320.
    XML:
    <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=Context.IsActive}" Value="False">
       <Setter Property="Opacity" Value="0.4"/>
    </DataTrigger>
    Here an opacity of 40% (0.4) is set in case, that the ListViewItem (this is the "container" of the image), has a "IsActive = false". This is done by a Trigger to the actual control.

    This control is defined few lines above:
    https://github.com/MediaPortal/Medi.../themes/default/styles/Buttons.xaml#L301-L315
    i.e. you could change the default Opacity at the Grid in line 301:
    XML:
    <Grid x:Name="GrowControl" RenderTransformOrigin="0.5,0.5" Margin="0,1,0,1">
    for example to use Opacity of 80%:
    XML:
    <Grid x:Name="GrowControl" RenderTransformOrigin="0.5,0.5" Margin="0,1,0,1" Opacity="0.8">

    I hope this helps...
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Home Country
    Australia Australia
    dont think im doing it right place?
    what i would like to achieve is make the rollover white.
    eg by default the home icons are normal size and the selected screen icon is white, but when you move your mouse/cursor over the other home buttons they get bigger but are still grey(Opacity="0.4") but i would like that version to be white(Opacity="1.0") as per screen shot.

    i have make the change to Opacity="1.0" at line 301 but it didnt seem to achieve what i was looking for.
    thanks
     

    Attachments

    • whatwouldlikeCapture.PNG
      whatwouldlikeCapture.PNG
      79.7 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ok, so this was a misunderstanding. Next try.

    The "hover" is handled also by a trigger on the "HasFocus" property. So mouse over -> HasFocus = true.

    The trigger executes a Storyboard, which can animate any property of the Control: https://github.com/MediaPortal/Medi.../themes/default/styles/Buttons.xaml#L322-L330

    The referenced Storyboard (FocusedGroupMenuItemStoryboard) does following:
    https://github.com/MediaPortal/Medi...on/themes/default/styles/Buttons.xaml#L74-L83

    This animates the Control's size. You can also animate the Opacity property if you like.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    having problems with my new internet provider and my PC. After upgrading to Windows 10 I receive frequent Kernel_security blue screens. Seems to be related with incompatible drivers, but nice that Windows 10 can not tell me this before installation and I need to investigate this by myself :(

    It will take longer as expected until I'm back ....
     

    Users who are viewing this thread

    Top Bottom