Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3a0594f
- Changing Result item and hotkey layout
onesounds Sep 27, 2021
0c47557
Add Modern Theme
onesounds Sep 27, 2021
b07a437
delete margin
onesounds Sep 27, 2021
7789c1c
adjust padding
onesounds Sep 27, 2021
c6f1a00
adjust
onesounds Sep 27, 2021
53c04fd
Fix Separator
onesounds Sep 27, 2021
f07a009
- Add Textbox Caret Color
onesounds Sep 27, 2021
4ced995
- Delete Comment
onesounds Sep 27, 2021
f83212a
remove itemgroup in csproj.
onesounds Sep 27, 2021
c227ba3
- fix for build (recovery some item group)
onesounds Sep 27, 2021
3bc3563
- Rollback Classic Skins
onesounds Sep 28, 2021
46917ea
but default hotkey color is not same subtitle color in classicthemes …
onesounds Sep 28, 2021
3e25030
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Sep 28, 2021
91d21a7
- Search Ico- In the theme, search icons can be inserted and styled (…
onesounds Sep 28, 2021
505b4cb
fix win11light theme seperator margin
onesounds Sep 28, 2021
8eba28f
- fix the theme preview in setting window
onesounds Sep 28, 2021
f1bfa5c
Fix Selected color in Darker.theme
onesounds Sep 30, 2021
9d10b7f
Fix the White Querybox in Metro Server.theme
onesounds Sep 30, 2021
bb7b0cd
- Add Magnifier in Win 11 Light/Dark Theme
onesounds Sep 30, 2021
ecb0cac
- Add listbox clipping class for rounded corner theme.
onesounds Oct 1, 2021
6a58576
- clean code
onesounds Oct 1, 2021
136f227
- Fix Responsive Query Area
onesounds Oct 1, 2021
c89d277
- Fix Responsive Query Area
onesounds Oct 1, 2021
49f00f5
- Fix List Item Margin
onesounds Oct 1, 2021
8e93969
- Fix pink theme (querybox witdh)
onesounds Oct 1, 2021
6048de4
- Fix Querybox Width
onesounds Oct 1, 2021
6211275
- Fix Setting window preview (last item clip)
onesounds Oct 1, 2021
c32ae79
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Oct 1, 2021
2b7855c
Change default Scrollbar Thumb color
onesounds Oct 1, 2021
39b53d9
Change default Scrollbar Thumb color
onesounds Oct 1, 2021
2144577
- Adjust Theme Preivew in setting window
onesounds Oct 1, 2021
03d134d
Add sublime theme
onesounds Oct 1, 2021
6e047e0
Fix Icon Image little cut #710
onesounds Oct 1, 2021
e7b4dd1
- Add ItemHotkeySelectedStyle Property
onesounds Oct 2, 2021
df3c5bf
- Add ItemHotkeySelectedStyle Property
onesounds Oct 2, 2021
89f4f5d
Fix Win11Light font size
onesounds Oct 2, 2021
1621f34
Fix Win11Light font size
onesounds Oct 2, 2021
92f0041
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Oct 2, 2021
c1b0929
- Redesign Setting Window
onesounds Oct 3, 2021
832405a
- Adjust base.xaml to match original(1.8) size for classic themes
onesounds Oct 4, 2021
1c96f04
- Adjust base.xaml to match original(1.8) size for classic themes
onesounds Oct 4, 2021
ca179be
- Adjust Plugin Tab in setting window
onesounds Oct 4, 2021
ed5bd5b
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Oct 4, 2021
4e01019
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Oct 4, 2021
d084793
Merge branch 'ModernTheme' of https://github.com/onesounds/Flow.Launc…
onesounds Oct 4, 2021
e201df9
- Fix Dropshadow
onesounds Oct 4, 2021
6c43a48
- Add Left/Right Key for context menu.
onesounds Oct 4, 2021
a5534ca
Update Flow.Launcher/Converters/BorderClipConverter.cs
onesounds Oct 5, 2021
d1e7b4e
Update Flow.Launcher/Flow.Launcher.csproj
onesounds Oct 5, 2021
1948ec5
Update Flow.Launcher/Flow.Launcher.csproj
onesounds Oct 5, 2021
88a9767
- delete csproj
onesounds Oct 5, 2021
10accd5
- Change value progress bar (using actual window)
onesounds Oct 5, 2021
d902a1e
use switch statement for Left/Right context menu logic
jjw24 Oct 5, 2021
e14bb23
- Merge "use switch statement for Left/Right context menu logic"
onesounds Oct 5, 2021
1b1a81d
- Rollback progressbar
onesounds Oct 5, 2021
12f95d1
- Fix Sperator(if it has) is not visible in the context menu or history.
onesounds Oct 5, 2021
25b5f30
- Add automatically height for subtitle.
onesounds Oct 5, 2021
8aaeb85
- item of *.lnk remove subtitle (for test)
onesounds Oct 5, 2021
66e722b
- Change context icon to glyph in some plugin
onesounds Oct 6, 2021
1149ff5
- Add Close Context menu in main window query bar
onesounds Oct 6, 2021
c74a2db
- Add clock in query bar (sublime theme only)
onesounds Oct 6, 2021
763cab8
Revert "- Add clock in query bar (sublime theme only)"
onesounds Oct 6, 2021
54145d7
revert subtitle change
jjw24 Oct 6, 2021
5f0df98
adjust Program plugin width
jjw24 Oct 6, 2021
04a10ed
add glyph option to settings
jjw24 Oct 7, 2021
4f19355
update wording
jjw24 Oct 7, 2021
1d746c2
- Fix ProgressBar (Finally!)
onesounds Oct 7, 2021
42dda34
add ItemHotkeyStyle key into dictionary
jjw24 Oct 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Flow.Launcher.Core/Resource/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void AddDropShadowEffectToCurrentTheme()
effectSetter.Property = Border.EffectProperty;
effectSetter.Value = new DropShadowEffect
{
Opacity = 0.9,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide a screenshot for people to check the effect of this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
It turned into a softer shadow. I tried to give it a feeling that is commonly used in modern Windows.

Opacity = 0.4,
ShadowDepth = 2,
BlurRadius = 15
};
Expand All @@ -261,7 +261,7 @@ public void AddDropShadowEffectToCurrentTheme()
}
else
{
var baseMargin = (Thickness) marginSetter.Value;
var baseMargin = (Thickness)marginSetter.Value;
var newMargin = new Thickness(
baseMargin.Left + ShadowExtraMargin,
baseMargin.Top + ShadowExtraMargin,
Expand All @@ -282,8 +282,8 @@ public void RemoveDropShadowEffectFromCurrentTheme()

var effectSetter = windowBorderStyle.Setters.FirstOrDefault(setterBase => setterBase is Setter setter && setter.Property == Border.EffectProperty) as Setter;
var marginSetter = windowBorderStyle.Setters.FirstOrDefault(setterBase => setterBase is Setter setter && setter.Property == Border.MarginProperty) as Setter;
if(effectSetter != null)

if (effectSetter != null)
{
windowBorderStyle.Setters.Remove(effectSetter);
}
Expand Down Expand Up @@ -371,11 +371,11 @@ private bool IsBlurTheme()
private void SetWindowAccent(Window w, AccentState state)
{
var windowHelper = new WindowInteropHelper(w);

// this determines the width of the main query window
w.Width = mainWindowWidth;
windowHelper.EnsureHandle();

var accent = new AccentPolicy { AccentState = state };
var accentStructSize = Marshal.SizeOf(accent);

Expand Down
8 changes: 6 additions & 2 deletions Flow.Launcher/Converters/HighlightTextConverter.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using System;
using System.Windows;using System;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a new line here

using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Documents;

namespace Flow.Launcher.Converters
Expand All @@ -30,7 +31,10 @@ public object Convert(object[] value, Type targetType, object parameter, Culture
var currentCharacter = text.Substring(i, 1);
if (this.ShouldHighlight(highlightData, i))
{
textBlock.Inlines.Add(new Bold(new Run(currentCharacter)));
//textBlock.Inlines.Add(new Bold(new Run(currentCharacter)));
//textBlock.Inlines.Add(new Run(currentCharacter) { Foreground = Brushes.RoyalBlue });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

textBlock.Inlines.Add(new Run(currentCharacter) { Style = (Style)Application.Current.FindResource("HighlightStyle") });

}
else
{
Expand Down
4 changes: 4 additions & 0 deletions Flow.Launcher/Flow.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
</ItemGroup>

<ItemGroup>
<Page Remove="Themes\League.Designer.xaml" />
<Page Remove="Themes\League.xaml" />
<Page Remove="Themes\ThemeBuilder\Template.xaml" />
<Page Remove="Themes\Win11Dark.Designer.xaml" />
<Page Remove="Themes\Win11Dark.xaml" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be considered as page? Why previous theme don't need to be remove here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know there was something like this. I'm going to erase it.

</ItemGroup>

<ItemGroup>
Expand Down
472 changes: 472 additions & 0 deletions Flow.Launcher/Flow.Launcher_tv5lgjxe_wpftmp.csproj

Large diffs are not rendered by default.

24 changes: 15 additions & 9 deletions Flow.Launcher/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<Window.Resources>
<converters:QuerySuggestionBoxConverter x:Key="QuerySuggestionBoxConverter"/>
</Window.Resources>

<Window.InputBindings>
<KeyBinding Key="Escape" Command="{Binding EscCommand}"></KeyBinding>
<KeyBinding Key="F1" Command="{Binding StartHelpCommand}"></KeyBinding>
Expand Down Expand Up @@ -62,13 +63,13 @@
<KeyBinding Key="D9" Modifiers="{Binding OpenResultCommandModifiers}" Command="{Binding OpenResultCommand}" CommandParameter="8"></KeyBinding>
</Window.InputBindings>
<Grid>
<Border Style="{DynamicResource WindowBorderStyle}" MouseDown="OnMouseDown" CornerRadius="5" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same. Probably a screenshot for this change may be better. (probably visual studio has xaml hot reload so this can be done easily).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Radius could not be changed in the theme because that code first. The setting was removed to allow the theme to be managed. Depending on the theme xaml., it will be round or square.

<Border Style="{DynamicResource WindowBorderStyle}" MouseDown="OnMouseDown">
<StackPanel Orientation="Vertical">
<Grid>
<TextBox x:Name="QueryTextSuggestionBox"
Style="{DynamicResource QuerySuggestionBoxStyle}"
IsEnabled="False"
Margin="18,0,56,0">
Margin="16,0,56,0">
<TextBox.Text>
<MultiBinding Converter="{StaticResource QuerySuggestionBoxConverter}">
<Binding ElementName="QueryTextBox" Path="Text"/>
Expand All @@ -83,24 +84,29 @@
AllowDrop="True"
Visibility="Visible"
Background="Transparent"
Margin="18,0,56,0">
Margin="16,0,56,0">
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Command="ApplicationCommands.Cut"/>
<MenuItem Command="ApplicationCommands.Copy"/>
<MenuItem Command="ApplicationCommands.Paste"/>
<Separator />
<MenuItem Header="Settings" Click="OnContextMenusForSettingsClick" />
<MenuItem Header="{DynamicResource flowlauncher_settings}" Click="OnContextMenusForSettingsClick" />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
<svgc:SvgControl Source="{Binding Image}" HorizontalAlignment="Right" Width="42" Height="42"
Background="Transparent"/>
<svgc:SvgControl Source="{Binding Image}" HorizontalAlignment="Right" Width="25" Height="25" Margin="0,2,18,0" Opacity="0.2" Background="Transparent" Style="{DynamicResource SearchIconStyle}"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same screenshot

Copy link
Contributor Author

@onesounds onesounds Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
It may not be seen well in some Themes, but it has been the same before. In the future, I will try to make it visible according to the theme.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably make this editable and edit it in theme file instead of the MainWindow.xaml

</Grid>
<Line x:Name="ProgressBar" HorizontalAlignment="Right"


<Grid>
<Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the height cannot be given, a rectangle was used instead of a separator.

<Line x:Name="ProgressBar" HorizontalAlignment="Right"
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Y1="0" Y2="0" X2="100" Height="2" Width="752" StrokeThickness="1">
</Line>
Y1="0" Y2="0" X2="100" Height="2" Width="Auto" StrokeThickness="1">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested it, but progressbar will come out nicely as it is placed on the separator. you guys talking about using spinner, I think this is better.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to get the progress bar shown but either dont have too many files or the progress bar is not showing up, could both of you test when you get a chance please @taooceros

</Line>
</Grid>

<ContentControl>
<flowlauncher:ResultListBox x:Name="ResultListBox" DataContext="{Binding Results}" PreviewMouseDown="OnPreviewMouseButtonDown" />
</ContentControl>
Expand Down
51 changes: 27 additions & 24 deletions Flow.Launcher/ResultListBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
IsSynchronizedWithCurrentItem="True"
PreviewMouseDown="ListBox_PreviewMouseDown">
<!--IsSynchronizedWithCurrentItem: http://stackoverflow.com/a/7833798/2833083-->

<ListBox.ItemTemplate>
<DataTemplate>
<Button>
Expand All @@ -29,41 +30,43 @@
</ControlTemplate>
</Button.Template>
<Button.Content>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5"
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0"
Cursor="Hand" UseLayoutRounding="False">
<Grid.Resources>
<converter:HighlightTextConverter x:Key="HighlightTextConverter"/>
<converter:OrdinalConverter x:Key="OrdinalConverter" />
<converter:OpenResultHotkeyVisibilityConverter x:Key="OpenResultHotkeyVisibilityConverter" />
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<ColumnDefinition />
<ColumnDefinition Width="0" />
<ColumnDefinition Width="54" />
<ColumnDefinition Width="*"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
I changed list item layout. It looks good and solves the problem that the Title area invades the hot key area.

<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image x:Name="ImageIcon" Width="32" Height="32" HorizontalAlignment="Left"
Source="{Binding Image}" Visibility="{Binding ShowIcon}" />
<TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center"
Text="{Binding Glyph.Glyph}" FontFamily="{Binding Glyph.FontFamily}" FontSize="24"
Visibility="{Binding ShowGlyph}"/>
<Grid Margin="5 0 5 0" Grid.Column="1" HorizontalAlignment="Stretch">
<StackPanel Visibility="{Binding ShowOpenResultHotkey}" Grid.Column="2" Margin="0 0 10 0">
<TextBlock Margin="12 0 12 0" Style="{DynamicResource ItemHotkeyStyle}" HorizontalAlignment="Right" Opacity="0.8" VerticalAlignment="Center" Padding="0 10 0 10">
<TextBlock.Visibility>
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" Converter="{StaticResource ResourceKey=OpenResultHotkeyVisibilityConverter}" />
</TextBlock.Visibility>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0}+{1}">
<Binding Path="OpenResultModifiers" />
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" Converter="{StaticResource ResourceKey=OrdinalConverter}" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>
<Border BorderThickness="0" BorderBrush="Transparent" Margin="14 0 0 0">
<Image x:Name="ImageIcon" Width="32" Height="32" HorizontalAlignment="Center" Source="{Binding Image}" Visibility="{Binding ShowIcon}" Margin="0 0 0 0"/>
</Border>
<Border BorderThickness="0" BorderBrush="Transparent" Margin="14 0 0 0">
<TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Glyph.Glyph}" FontFamily="{Binding Glyph.FontFamily}" FontSize="24" Visibility="{Binding ShowGlyph}" Margin="12 0 0 0" />
</Border>
<Grid Margin="6 0 6 0" Grid.Column="1" HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" x:Name="SubTitleRowDefinition" />
</Grid.RowDefinitions>
<StackPanel Visibility="{Binding ShowOpenResultHotkey}">
<TextBlock Margin="0 5 5 0" Style="{DynamicResource ItemSubTitleStyle}" HorizontalAlignment="Right" Opacity="0.8" >
<TextBlock.Visibility>
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" Converter="{StaticResource ResourceKey=OpenResultHotkeyVisibilityConverter}" />
</TextBlock.Visibility>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0}+{1}">
<Binding Path="OpenResultModifiers" />
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ListBoxItem}" Converter="{StaticResource ResourceKey=OrdinalConverter}" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>

<TextBlock Style="{DynamicResource ItemTitleStyle}" DockPanel.Dock="Left"
VerticalAlignment="Center" ToolTip="{Binding ShowTitleToolTip}" x:Name="Title"
Text="{Binding Result.Title}">
Expand Down Expand Up @@ -104,7 +107,7 @@
<Style TargetType="{x:Type ListBoxItem}">
<EventSetter Event="MouseEnter" Handler="OnMouseEnter" />
<EventSetter Event="MouseMove" Handler="OnMouseMove" />
<Setter Property="Height" Value="50" />
<Setter Property="Height" Value="52" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="BorderThickness" Value="0" />
Expand Down
44 changes: 31 additions & 13 deletions Flow.Launcher/Themes/Base.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}">
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontSize" Value="28" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="Height" Value="46" />
<Setter Property="FontWeight" Value="Regular" />
<Setter Property="Height" Value="56" />
<Setter Property="Padding" Value="0 4 0 0" />
<Setter Property="Background" Value="#2F2F2F" />
<Setter Property="Width" Value="536" />
<Setter Property="Foreground" Value="#E3E0E3" />
<Setter Property="CaretBrush" Value="#E3E0E3" />
<Setter Property="VerticalContentAlignment" Value="Center" />
Expand Down Expand Up @@ -36,24 +38,26 @@
<!-- Further font customisations are dynamically loaded in Theme.cs -->
<Style x:Key="BaseQuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
<Setter Property="Foreground" Value="DarkGray" />
<Setter Property="Width" Value="536" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Padding" Value="0 4 0 0" />
</Style>

<Style x:Key="BaseWindowBorderStyle" TargetType="{x:Type Border}">
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="0" />
<Setter Property="Background" Value="#2F2F2F"></Setter>
<Setter Property="Padding" Value="8 10 8 8" />
<Setter Property="Padding" Value="0 0 0 0" />
</Style>
<Style x:Key="BaseWindowStyle" TargetType="{x:Type Window}">
<Setter Property="Width" Value="750" />
<Setter Property="Width" Value="586" />
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
</Style>

<Style x:Key="BasePendingLineStyle" TargetType="{x:Type Line}">
<Setter Property="Stroke" Value="Blue" />
</Style>


<!-- Item Style -->
<Style x:Key="BaseItemTitleStyle" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#FFFFF8" />
Expand All @@ -64,6 +68,8 @@
<Style x:Key="BaseItemSubTitleStyle" TargetType="{x:Type TextBlock}" >
<Setter Property="Foreground" Value="#D9D9D4" />
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
<Setter Property="FontSize" Value="13" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="BaseItemNumberStyle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
Expand All @@ -75,19 +81,19 @@
<Style x:Key="BaseItemTitleSelectedStyle" TargetType="{x:Type TextBlock}" >
<Setter Property="Foreground" Value="#FFFFF8" />
<Setter Property="FontSize" Value="16" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
</Style>
<Style x:Key="BaseItemSubTitleSelectedStyle" TargetType="{x:Type TextBlock}" >
<Setter Property="Foreground" Value="#D9D9D4" />
<Setter Property="FontSize" Value="13" />
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
</Style>

<SolidColorBrush x:Key="ItemSelectedBackgroundColor">#4D4D4D</SolidColorBrush>

<Style x:Key="BaseItemImageSelectedStyle" TargetType="{x:Type Image}" >
</Style>
</Style>

<Style x:Key="BaseListboxStyle" TargetType="{x:Type ListBox}">
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Background" Value="Transparent"/>
Expand All @@ -96,6 +102,7 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBox">
<!-- <ScrollViewer Focusable="false" Template="{DynamicResource ScrollViewerControlTemplate}">-->
<ScrollViewer Focusable="false" Template="{DynamicResource ScrollViewerControlTemplate}">
<VirtualizingStackPanel IsItemsHost="True" />
</ScrollViewer>
Expand All @@ -120,15 +127,15 @@
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
Grid.Column="0"
Margin="{TemplateBinding Padding}"
Margin="0"
Grid.Row="0" />

<!--Scrollbar in thr rigth of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow"
Grid.Column="1"
Margin="3 0 0 0"
Margin="0 0 0 0"
Maximum="{TemplateBinding ScrollableHeight}"
Minimum="0"
Grid.Row="0"
Expand All @@ -149,7 +156,7 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border CornerRadius="2" DockPanel.Dock="Right" Background="#616161" BorderBrush="Transparent" BorderThickness="0" />
<Border CornerRadius="2" DockPanel.Dock="Right" Background="#bebebe" BorderBrush="Transparent" BorderThickness="0" />
</ControlTemplate>
</Setter.Value>
</Setter>
Expand All @@ -176,4 +183,15 @@
</Setter>

</Style>


<Style x:Key="BaseSeparatorStyle" TargetType="Rectangle">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=ResultListBox, Path=Visibility}" Value="Visible">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>

Loading