Jump to content
LaunchBox Community Forums

Coverbox - change text and/or color for specific platform


Zenotek

Recommended Posts

Hi @Zenotek. I'm going to answer all your questions in this thread.

To change the font of the game list. Open the TextListView.xaml file, located in the Views folder of the theme, and find the following code to change the value to the name of the font you want to use.
 

<Setter Property="FontFamily" Value="{StaticResource BebasNeue}" />

If I wanted to use Calibri, I would change the code to look like this:

<Setter Property="FontFamily" Value="Calibri" />

 

To change the selected highlight colour of a game, find the following code, and change the colours of the GradientStop to the colour codes of your choosing.

                                <Setter TargetName="Bd" Property="BorderBrush">
                                    <Setter.Value>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientBrush.GradientStops>
                                                <GradientStopCollection>
                                                    <GradientStop Color="#00999999" Offset="0" />
                                                    <GradientStop Color="#999999" Offset=".5" />
                                                    <GradientStop Color="#00999999" Offset="1" />
                                                </GradientStopCollection>
                                            </GradientBrush.GradientStops>
                                        </LinearGradientBrush>
                                    </Setter.Value>

 

 

If you want to change the font, or colour of the purple text, open the TextGamesView.xaml file, and find the following code:

                <Viewbox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left">
                    <TextBlock FontFamily="{StaticResource BebasNeue}" FontSize="100" HorizontalAlignment="Center">
                    <TextBlock Text="{Binding Path=ActiveGame.Platform}" />
                        <TextBlock.Foreground>
                            <LinearGradientBrush StartPoint=".5,0" EndPoint=".5,1">
                                <GradientStop Color="#8b7ec1" Offset="0.0" />
                                <GradientStop Color="#35304b" Offset="1.0" />
                            </LinearGradientBrush>
                        </TextBlock.Foreground>
                    </TextBlock>
                </Viewbox>

Change the FontFamily to the font that you want, or change the GradientStop Colors to whatever you'd like.

Link to comment
Share on other sites

26 minutes ago, Zenotek said:

one more thing is it possible to make the screenshot images bigger 1470960496_Screenshot3.thumb.png.875e4920c535095e4748ff460fa15404.png

That one is a little bit of a mystery to me. If you are referring to that steam background picture, it looks like it's bugged out a little, as there is no code allowing a picture to be in that location. Instead, the background picture should be stretch to fit the entire background.

Can you try this. Open the TextGamesView.xaml file and delete the following code:

            <transitions:TransitionPresenter TransitionSelector="{Binding BackgroundTransitionSelector}" Content="{Binding BackgroundView}" Height="{Binding ElementName=Canvas, Path=ActualHeight}" Width="{Binding ElementName=Canvas, Path=ActualWidth}" Grid.RowSpan="3" IsContentVideo="true" />

            <!--GCFE Background Image-->
            <Grid Grid.RowSpan="3">
                <Image Source="pack://siteoforigin:,,,/Themes/Coverbox/Images/Theme/GCFE-View.png" />
            </Grid>
            <!--GCFE Background Image Ends-->

 

Replace with this code, in the same spot:

            <!--GCFE Background Image-->
            <Grid Grid.RowSpan="3">
                <transitions:TransitionPresenter TransitionSelector="{Binding BackgroundTransitionSelector}" Content="{Binding BackgroundView}" IsContentVideo="true" />
                <Image Source="pack://siteoforigin:,,,/Themes/Coverbox/Images/Theme/GCFE-View.png" />
            </Grid>
            <!--GCFE Background Image Ends-->

 

Link to comment
Share on other sites

50 minutes ago, Zenotek said:

one more thing is it possible to make the screenshot images bigger 1470960496_Screenshot3.thumb.png.875e4920c535095e4748ff460fa15404.png

Oh I see. That's actually a video control, which only reverts to a screenshot if you don't have a video for a game.

Find the location in the TextGamesView.xaml where it says:

<!-- Video Starts Here -->

And play around with the ColumnDefinition and RowDefinition numbers until it fits into the space that you want.

The video resides in the ColumnDefinition that says 20*, and RowDefinition that says 31*.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...