Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to load this theme #4

Closed
tooilxui opened this issue Oct 28, 2020 · 2 comments
Closed

failed to load this theme #4

tooilxui opened this issue Oct 28, 2020 · 2 comments

Comments

@tooilxui
Copy link

wox version: 1.4.1196
error: popup an window and shows Fail to load theme Dracula, fallback to default theme when I apply this theme.

@kdar
Copy link
Member

kdar commented Oct 28, 2020

I haven't used Wox in a long while, so not sure what's changed. The only difference I see between the Dracula theme and the base one, is the Dracula theme has this in it:

    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Thumb}">
          <Border CornerRadius="2" DockPanel.Dock="Right" Background="#ff79c6" BorderBrush="Transparent" BorderThickness="0" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>

could you try using this and see if it works?

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Base.xaml"></ResourceDictionary>
  </ResourceDictionary.MergedDictionaries>
  <Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
    <Setter Property="Background" Value="#343648"/>
    <Setter Property="Foreground" Value="#f8f8f2" />
  </Style>
  <Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
    <Setter Property="Background" Value="#282a36"></Setter>
  </Style>
  <Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}">
  </Style>
  <Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}">
  </Style>
  <Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}">
    <Setter Property="Foreground" Value="#f5f5f5"></Setter>
  </Style>
  <Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}">
    <Setter Property="Foreground" Value="#6272a4"></Setter>
  </Style>
  <Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
    <Setter Property="Foreground" Value="#f5f5f5" />
  </Style>
  <Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
    <Setter Property="Foreground" Value="#bd93f9" />
  </Style>
  <SolidColorBrush x:Key="ItemSelectedBackgroundColor">#44475A</SolidColorBrush>
  <Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}">
  </Style>
  <Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}"></Style>
</ResourceDictionary>

@tooilxui
Copy link
Author

tooilxui commented Nov 9, 2020

@kdar finally I got the reason why. that's because theme directory has been moved to new path. this theme is ok in that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants