Skip to content

Commit

Permalink
improve tooltip style
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Jul 23, 2024
1 parent 78edb5e commit 13153a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
6 changes: 6 additions & 0 deletions src/OneWare.Core/Styles/IdeStyles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,23 @@
<Style Selector="ToolTip">
<Setter Property="CornerRadius" Value="3"/>
<Setter Property="Padding" Value="3" />
<Setter Property="MaxWidth" Value="600" />
<Setter Property="Template">
<ControlTemplate>
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
UseLayoutRounding="True"
Padding="{TemplateBinding Padding}">
<ContentPresenter Content="{TemplateBinding Content}" />
</Border>
</ControlTemplate>
</Setter>
</Style>

<Style Selector="ToolTip TextBlock">
<Setter Property="TextWrapping" Value="WrapWithOverflow"/>
</Style>

</Styles>
8 changes: 0 additions & 8 deletions src/OneWare.ErrorList/Views/ErrorListView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0" />
</Style>

<Style Selector="ToolTip">
<Setter Property="MaxWidth" Value="300" />
</Style>

<Style Selector="ToolTip TextBlock">
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>

<Style Selector="ToggleButton.ErrorToggle">
<Setter Property="Background" Value="Transparent" />
Expand Down
14 changes: 1 addition & 13 deletions src/OneWare.SearchList/Views/SearchListView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,7 @@
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="250"
x:Class="OneWare.SearchList.Views.SearchListView" x:DataType="viewModels:SearchListViewModel"
Background="{DynamicResource ThemeControlLowBrush}">
<UserControl.Styles>

<Style Selector="ToolTip">
<Setter Property="MaxWidth" Value="300" />
</Style>

<Style Selector="ToolTip TextBlock">
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>

</UserControl.Styles>



<Grid RowDefinitions="30,*">

<Border Background="{DynamicResource ThemeBackgroundBrush}" Padding="2">
Expand Down

0 comments on commit 13153a9

Please sign in to comment.