Wox: Failed to load theme creating at theme builder

Created on 27 Apr 2020  ·  6Comments  ·  Source: Wox-launcher/Wox

Hey guys!

I created a theme using the Theme Builder and when I try to put it to work it returns the error Fail to load the xxxx, fallback to default theme. I wonder how to solve this ...

How to view the theme:
1) Open the Wox screen
2) Type Settings and hit enter
3) go to Theme and try to select the edited theme.

bug

All 6 comments

1 please upload your theme file to debug.
2 please specify wox version

I think when I updated the template I forgot to change it in the website repository. I will make a pull request.

For now you can open the theme file with a text editor, find lines that look like this

<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
    <Setter Property="Foreground" Value="{%searchFieldTextColor%}" />
    <Setter Property="Background" Value="{%searchFieldBackgroundColor%}"/>
</Style>

and edit them look like this

<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
    <Setter Property="Foreground" Value="{%searchFieldTextColor%}" />
</Style>
<Style x:Key="QueryTextSuggestionBoxStyle" BasedOn="{StaticResource BaseQueryTextSuggestionBoxStyle}" TargetType="{x:Type TextBox}">
    <Setter Property="Background" Value="{%searchFieldBackgroundColor%}"/>
</Style>

1 please upload your theme file to debug.
2 please specify wox version

1) Link: https://rb.gy/ihkpqq
2) Version 1.3.881

@sausagemountain It's that possible to rewrite your pr without brake the compatibility?

Was this page helpful?
0 / 5 - 0 ratings