Skip to content

Commit

Permalink
Added informative hint to channels pages UI & added AppStrings
Browse files Browse the repository at this point in the history
- Added informative hint to channels pages UI
- Added AppStrings for static strings that will be used throughout the program
  • Loading branch information
primetime43 committed Nov 15, 2024
1 parent dbd1381 commit 26e8f57
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 36 deletions.
13 changes: 13 additions & 0 deletions X-IPTV/AppStrings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X_IPTV
{
public static class AppStrings
{
public const string ChannelsHint = "Right-click on a channel to open it in the player or copy the URL. Hover over items for additional descriptions.";
}
}
38 changes: 26 additions & 12 deletions X-IPTV/Views/M3UChannelList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:X_IPTV.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:strings="clr-namespace:X_IPTV"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
Expand Down Expand Up @@ -89,25 +90,38 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<!-- Header for search box -->
<StackPanel
Grid.Row="0"
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Orientation="Horizontal">
Orientation="Vertical">

<!-- Search Header -->
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="SearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="M3USearchTextBox_TextChanged" />
</StackPanel>

<!-- Instructional Text -->
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="SearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="M3USearchTextBox_TextChanged" />
HorizontalAlignment="Center"
FontSize="12"
Foreground="LightGray"
Text="{x:Static strings:AppStrings.ChannelsHint}"
TextAlignment="Center"
TextWrapping="Wrap" />
</StackPanel>

<!-- ListBox placed in the second row -->
Expand Down
39 changes: 27 additions & 12 deletions X-IPTV/Views/UniversalSearchList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:X_IPTV.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:strings="clr-namespace:X_IPTV"
MinWidth="800"
MinHeight="450"
d:DesignHeight="450"
Expand Down Expand Up @@ -98,27 +99,41 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<!-- Header for search box -->
<StackPanel
Grid.Row="0"
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Orientation="Horizontal">
Orientation="Vertical">

<!-- Search Header -->
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="USearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="USearchTextBox_TextChanged" />
</StackPanel>

<!-- Instructional Text -->
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="USearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="USearchTextBox_TextChanged" />
HorizontalAlignment="Center"
FontSize="12"
Foreground="LightGray"
Text="{x:Static strings:AppStrings.ChannelsHint}"
TextAlignment="Center"
TextWrapping="Wrap" />
</StackPanel>


<!-- ListBox placed in the second row -->
<ListBox
Name="USearchChannelLst"
Expand Down
38 changes: 26 additions & 12 deletions X-IPTV/Views/XtreamChannelList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:X_IPTV.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:strings="clr-namespace:X_IPTV"
MinWidth="800"
MinHeight="450"
d:DesignHeight="450"
Expand Down Expand Up @@ -96,25 +97,38 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<!-- Header for search box -->
<StackPanel
Grid.Row="0"
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Orientation="Horizontal">
Orientation="Vertical">

<!-- Search Header -->
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="SearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="XtreamSearchTextBox_TextChanged" />
</StackPanel>

<!-- Instructional Text -->
<TextBlock
VerticalAlignment="Center"
FontSize="16"
Foreground="White"
Text="Search: " />
<TextBox
x:Name="SearchTextBox"
Width="200"
Margin="5"
VerticalAlignment="Center"
Background="White"
TextChanged="XtreamSearchTextBox_TextChanged" />
HorizontalAlignment="Center"
FontSize="12"
Foreground="LightGray"
Text="{x:Static strings:AppStrings.ChannelsHint}"
TextAlignment="Center"
TextWrapping="Wrap" />
</StackPanel>

<!-- ListBox placed in the second row -->
Expand Down

0 comments on commit 26e8f57

Please sign in to comment.