Skip to content

Commit

Permalink
Final preparation for v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandPheasant committed Feb 22, 2016
1 parent 8eedcaa commit 4389c40
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 15 deletions.
36 changes: 36 additions & 0 deletions Documents/Release v0.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#Tail Blazer v0.7

It is not long since the previous version of Tail Blazer was released but I have decided to do another release because I have just completed what is probably the most requested feature - custom colours. But as ever I never like to under deliver so I thought I would go the extra mile and enable a very rich means of custom colouring and row indication.

Before I outline the new features, you can download the release from either of the following

- [github releases](https://github.com/RolandPheasant/TailBlazer/releases)
- [chocolatey](https://chocolatey.org/packages/tailblazer) (there may be a delay before this version is available)

## Custom text highlighting

In earlier versions of Tail Blazer there was a single highlight colour. Now you can choose from a much wider palette.

![Change colour ](https://github.com/RolandPheasant/TailBlazer/blob/master/Images/Release v0.7/ChangeColours.gif)

## Custom row indicator

Being able to apply a colour of choice to text which has matched some criteria is a standard feature of most file tail programs. However I want Tail Blazer to have its own twist, so I have enabled custom row indicator icons. How popular this proves to be remains to be seen.

![Change row indicator](https://github.com/RolandPheasant/TailBlazer/blob/master/Images/Release v0.7/ChangeIcon.gif)

## Priority of matched text

The row indicator is particularly useful when you have more text than can be displayed. However since only one icon can be displayed there is a mechanism to allow the user to decide the order of priority i.e. the first text which is matched in the list is displayed.

![Change priority](https://github.com/RolandPheasant/TailBlazer/blob/master/Images/Release v0.7/ChangePriority.gif)

## One last feature

This next feature is completely unrelated to the above but I included it because I was able to implement it very quickly. You can now open the file directly or go to the file's containing folder.

![Open file](https://github.com/RolandPheasant/TailBlazer/blob/master/Images/Release v0.7/OpenFolder.gif)

## So what's next. Any roadmap?

There loads of development coming in the future but more immediately I will be blogging about Tail Blazer with particular reference to it's use of Rx. Also I need a rest so I think perhaps a couple weeks where I do no open source coding.
Binary file added Images/Release v0.7/ChangeColours.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Release v0.7/ChangeIcon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Release v0.7/ChangePriority.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Release v0.7/OpenFolder.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Source/TailBlazer.Domain/FileHandling/FileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class FileWatcher : IFileWatcher

public string Folder => FileInfo.DirectoryName;

public string Extension => FileInfo.Extension;

public FileWatcher([NotNull] FileInfo fileInfo, IScheduler scheduler=null)
{
FileInfo = fileInfo;
Expand Down
3 changes: 2 additions & 1 deletion Source/TailBlazer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TextElement.FontSize="12"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="pack://application:,,,/MaterialDesignThemes.Wpf;component/Resources/Roboto/#Roboto"
FontFamily="{StaticResource MaterialDesignFont}"
NonActiveWindowTitleBrush="{DynamicResource WindowTitleColorBrush}"
WindowTitleBrush="{DynamicResource WindowTitleColorBrush}"
GlowBrush="{DynamicResource AccentColorBrush3}"
Expand All @@ -38,6 +38,7 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.buttons.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Font.xaml" />
<ResourceDictionary Source="pack://application:,,,/Dragablz;component/Themes/MaterialDesign.xaml"/>
</ResourceDictionary.MergedDictionaries>

Expand Down
18 changes: 11 additions & 7 deletions Source/TailBlazer/Themes/Lines.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@
FontFamily="{StaticResource MaterialDesignFont}"
Visibility="{Binding ShowIndicator.Value}">
<materialDesign:PopupBox.ToggleContent>

<materialDesign:PackIcon
Width="14"
Height="14"
Foreground="{Binding IndicatorColour.Value}"
Kind="{Binding IndicatorIcon.Value,FallbackValue={x:Static materialDesign:PackIconKind.Information}}"/>


<materialDesign:PackIcon
Width="14"
Height="14"
materialDesign:ShadowAssist.ShadowDepth="Depth5"
Foreground="{Binding IndicatorColour.Value}"
Kind="{Binding IndicatorIcon.Value,FallbackValue={x:Static materialDesign:PackIconKind.Information}}"/>
</materialDesign:PopupBox.ToggleContent>

<Grid Margin="8">
<Grid Margin="8" TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto" >

<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
Expand Down
3 changes: 3 additions & 0 deletions Source/TailBlazer/Views/Recent/RecentFilesView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:controls="clr-namespace:TailBlazer.Controls"
xmlns:recent="clr-namespace:TailBlazer.Views.Recent"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"

mc:Ignorable="d"
d:DataContext="{d:DesignInstance recent:RecentFilesViewModel, IsDesignTimeCreatable=False}"
d:DesignHeight="300" d:DesignWidth="300">
Expand Down
15 changes: 9 additions & 6 deletions Source/TailBlazer/Views/Searching/SearchOptionsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
xmlns:controls="clr-namespace:TailBlazer.Controls"
xmlns:infrastucture="clr-namespace:TailBlazer.Infrastucture"
mc:Ignorable="d"
TextElement.Foreground="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window}, Path=(TextElement.Foreground)}"
Background="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window}, Path=Background}"

d:DataContext="{d:DesignInstance searching:SearchOptionsViewModel}"
d:DesignHeight="300">

Expand Down Expand Up @@ -49,7 +48,12 @@
ToolTip="Change icon"
Padding="0"
Width="24" Height="24"

BorderThickness="0"
HorizontalAlignment="Left"
SnapsToDevicePixels="True"
UseLayoutRounding="True"
wpf:ShadowAssist.ShadowDepth="Depth2"
VerticalAlignment="Center">
<wpf:PackIcon
Padding="4"
Expand Down Expand Up @@ -83,9 +87,9 @@
<Button Style="{StaticResource MaterialDesignFloatingActionButton}"
BorderBrush="{DynamicResource GrayBrush2}"
BorderThickness="0"



SnapsToDevicePixels="True"
UseLayoutRounding="True"
wpf:ShadowAssist.ShadowDepth="Depth2"
Command="{Binding ElementName=Row,Path=DataContext.HighlightCommand}"
CommandParameter="{Binding}"
Margin="2">
Expand Down Expand Up @@ -195,7 +199,6 @@
</TextBox>
</Grid>


<dragablz:DragablzItemsControl Grid.Row="2"
Margin="6 0 6 0"
ItemContainerStyle="{StaticResource DragableItem}"
Expand Down
3 changes: 2 additions & 1 deletion Source/TailBlazer/Views/Tail/TailView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@


<Grid Margin="6 0 6 0"

TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
HorizontalAlignment="Left">
<Grid.Resources>
<Style TargetType="{x:Type TextBlock}">
Expand Down
4 changes: 4 additions & 0 deletions Source/TailBlazer/Views/Tail/TailViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
Expand All @@ -11,6 +13,7 @@
using DynamicData.Binding;
using DynamicData.PLinq;
using MaterialDesignThemes.Wpf;
using Microsoft.Win32;
using TailBlazer.Controls;
using TailBlazer.Domain.Annotations;
using TailBlazer.Domain.FileHandling;
Expand Down Expand Up @@ -89,6 +92,7 @@ public TailViewModel([NotNull] ILogger logger,
if (searchHints == null) throw new ArgumentNullException(nameof(searchHints));

_stateProvider = new TailViewPersister(this);

Name = fileWatcher.FullName;
SelectionMonitor = selectionMonitor;
SearchOptions = searchOptionsViewModel;
Expand Down

0 comments on commit 4389c40

Please sign in to comment.