Skip to content

Commit

Permalink
Bugfix/tcotask_styles (#598)
Browse files Browse the repository at this point in the history
* added button style to tcomomentary task

* Added button default styles to TcoToggleTask

---------

Co-authored-by: peterbarancek <[email protected]>
  • Loading branch information
sojci and peterbarancek authored Mar 22, 2023
1 parent e922d80 commit 16f0bbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<Grid>
<Button
Background="{Binding TcoMomentaryTask._state.Cyclic, Converter={local:TaskStateToBackgroundBrushConverter}}"
Foreground="{Binding TcoMomentaryTask._state.Cyclic, Converter={local:TaskStateToForegroundBrushConverter}}"
Foreground="{Binding TcoMomentaryTask._state.Cyclic, Converter={local:TaskStateToForegroundBrushConverter}}"
Style="{StaticResource MaterialDesignRaisedButton}"
materialDesign:RippleAssist.IsDisabled="True"
Command="{Binding TcoMomentaryTask}"
Content="{Binding Caption}">
<inter:Interaction.Triggers>
Expand All @@ -24,4 +26,4 @@
</inter:Interaction.Triggers>
</Button>
</Grid>
</UserControl>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
<Grid>
<Button
Background="{Binding TcoToggleTask._state.Cyclic, Converter={local:TaskStateToBackgroundBrushConverter}}"
Foreground="{Binding TcoToggleTask._state.Cyclic, Converter={local:TaskStateToForegroundBrushConverter}}"
Foreground="{Binding TcoToggleTask._state.Cyclic, Converter={local:TaskStateToForegroundBrushConverter}}"
Style="{StaticResource MaterialDesignRaisedButton}"
materialDesign:RippleAssist.IsDisabled="True"
Command="{Binding TcoToggleTask}"
Content="{Binding Caption}"/>
</Grid>
</UserControl>
</UserControl>

0 comments on commit 16f0bbb

Please sign in to comment.