Skip to content

Commit

Permalink
Partial fix slider color in trackheader
Browse files Browse the repository at this point in the history
  • Loading branch information
maiko3tattun committed Jul 7, 2023
1 parent 1131bb7 commit 68e9b86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
23 changes: 17 additions & 6 deletions OpenUtau/Controls/TrackHeader.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@
</Style>
<Style Selector="Slider.fader">
<Setter Property="Foreground" Value="{Binding TrackColor.AccentColor}"/>
</Style>
<Style Selector="Slider.fader:pointerover /template/ RepeatButton#PART_Track">
<Setter Property="Foreground" Value="{Binding TrackColor.AccentColorLight}"/>
</Style>
<Style Selector="Slider.fader:pressed /template/ RepeatButton#PART_Track">
<Setter Property="Foreground" Value="{Binding TrackColor.AccentColorDark}"/>

<Style Selector="^:pointerover">
<!--<Style Selector="^ /template/ Thumb">
<Setter Property="Background" Value="{Binding TrackColor.AccentColorLight}" />
</Style>-->
<Style Selector="^ /template/ RepeatButton#PART_DecreaseButton">
<Setter Property="Background" Value="{Binding TrackColor.AccentColorLight}" />
</Style>
</Style>
<Style Selector="^:pressed">
<!--<Style Selector="^ /template/ Thumb">
<Setter Property="Background" Value="{Binding TrackColor.AccentColorDark}" />
</Style>-->
<Style Selector="^ /template/ RepeatButton#PART_DecreaseButton">
<Setter Property="Background" Value="{Binding TrackColor.AccentColorDark}" />
</Style>
</Style>
</Style>
</UserControl.Styles>
<Border Margin="1,1,1,1" BorderThickness="1" BorderBrush="{DynamicResource NeutralAccentBrushSemi}" CornerRadius="2">
Expand Down
4 changes: 4 additions & 0 deletions OpenUtau/Styles/PianoRollStyles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<Setter Property="Background" Value="{DynamicResource SelectedTrackAccentLightBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource SelectedTrackAccentLightBrush}"/>
</Style>
<Style Selector="CheckBox:checked:pressed /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource SelectedTrackAccentDarkBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource SelectedTrackAccentDarkBrush}"/>
</Style>

<Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource SelectedTrackAccentLightBrushSemi}"/>
Expand Down

0 comments on commit 68e9b86

Please sign in to comment.