Burger-Button entfernt - ueberall Strg+B, Titelleiste zeigt Hinweis wenn Sidebar zu
This commit is contained in:
parent
58711836e6
commit
499c731bf6
2 changed files with 7 additions and 22 deletions
|
|
@ -353,18 +353,7 @@
|
||||||
Visibility="Collapsed"
|
Visibility="Collapsed"
|
||||||
Panel.ZIndex="5"/>
|
Panel.ZIndex="5"/>
|
||||||
|
|
||||||
<!-- Burger-Button: ausserhalb VideoOverlay, unten links in der Ecke -->
|
<!-- Kein Burger-Button mehr - Strg+B zum Einblenden der Seitenleiste -->
|
||||||
<!-- Dort klar als App-Element erkennbar, nicht mit YouTube-Burger verwechselbar -->
|
|
||||||
<Button x:Name="BtnSidebarToggleOverlay"
|
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Bottom"
|
|
||||||
Width="36" Height="36" Margin="8"
|
|
||||||
Background="#CC161616" Foreground="White" BorderThickness="1"
|
|
||||||
BorderBrush="#444"
|
|
||||||
Content="☰" FontSize="16" Cursor="Hand"
|
|
||||||
Visibility="Collapsed"
|
|
||||||
Panel.ZIndex="20"
|
|
||||||
Click="BtnSidebarToggle_Click"
|
|
||||||
ToolTip="Seitenleiste wieder einblenden (Strg+B)"/>
|
|
||||||
<TextBlock x:Name="TxtNoChannel"
|
<TextBlock x:Name="TxtNoChannel"
|
||||||
Text="Wähle einen Sender aus der Liste"
|
Text="Wähle einen Sender aus der Liste"
|
||||||
Foreground="#666" FontSize="18"
|
Foreground="#666" FontSize="18"
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,6 @@ public partial class MainWindow : Window
|
||||||
WebView.Visibility = Visibility.Collapsed;
|
WebView.Visibility = Visibility.Collapsed;
|
||||||
VideoView.Visibility = Visibility.Visible;
|
VideoView.Visibility = Visibility.Visible;
|
||||||
VideoOverlay.Visibility = Visibility.Visible;
|
VideoOverlay.Visibility = Visibility.Visible;
|
||||||
Title = "HomeStream";
|
|
||||||
|
|
||||||
if (_libVLC == null || _player == null) return;
|
if (_libVLC == null || _player == null) return;
|
||||||
try
|
try
|
||||||
|
|
@ -409,15 +408,13 @@ public partial class MainWindow : Window
|
||||||
RadioCover.Visibility = Visibility.Collapsed;
|
RadioCover.Visibility = Visibility.Collapsed;
|
||||||
VideoOverlay.Visibility = Visibility.Collapsed;
|
VideoOverlay.Visibility = Visibility.Collapsed;
|
||||||
WebView.Visibility = Visibility.Visible;
|
WebView.Visibility = Visibility.Visible;
|
||||||
Title = "HomeStream — Strg+B → Menü";
|
// Titelleiste via ApplySidebarLayout gesetzt
|
||||||
|
|
||||||
TxtEpgNow.Text = "🌐 Browser";
|
TxtEpgNow.Text = "🌐 Browser";
|
||||||
TxtEpgNext.Text = "";
|
TxtEpgNext.Text = "";
|
||||||
TxtChannelSource.Text = "● Web";
|
TxtChannelSource.Text = "● Web";
|
||||||
TxtChannelSource.Foreground = new System.Windows.Media.SolidColorBrush(
|
TxtChannelSource.Foreground = new System.Windows.Media.SolidColorBrush(
|
||||||
System.Windows.Media.Color.FromRgb(0xFF, 0x99, 0x00));
|
System.Windows.Media.Color.FromRgb(0xFF, 0x99, 0x00));
|
||||||
// Burger-Button ausblenden (wuerde Browser-Elemente doppelt klicken)
|
|
||||||
BtnSidebarToggleOverlay.Visibility = Visibility.Collapsed; // Orange für Web
|
|
||||||
|
|
||||||
if (_webViewReady)
|
if (_webViewReady)
|
||||||
{
|
{
|
||||||
|
|
@ -658,7 +655,6 @@ public partial class MainWindow : Window
|
||||||
SidebarColumn.Width = new GridLength(0);
|
SidebarColumn.Width = new GridLength(0);
|
||||||
ChannelsColumn.Width = new GridLength(0);
|
ChannelsColumn.Width = new GridLength(0);
|
||||||
BottomBar.Visibility = Visibility.Collapsed;
|
BottomBar.Visibility = Visibility.Collapsed;
|
||||||
BtnSidebarToggleOverlay.Visibility = Visibility.Collapsed;
|
|
||||||
|
|
||||||
ResizeMode = ResizeMode.NoResize;
|
ResizeMode = ResizeMode.NoResize;
|
||||||
WindowStyle = WindowStyle.None;
|
WindowStyle = WindowStyle.None;
|
||||||
|
|
@ -674,7 +670,6 @@ public partial class MainWindow : Window
|
||||||
ChannelsColumn.Width = new GridLength(280);
|
ChannelsColumn.Width = new GridLength(280);
|
||||||
}
|
}
|
||||||
BottomBar.Visibility = Visibility.Visible;
|
BottomBar.Visibility = Visibility.Visible;
|
||||||
BtnSidebarToggleOverlay.Visibility = _sidebarHidden ? Visibility.Visible : Visibility.Collapsed;
|
|
||||||
|
|
||||||
ResizeMode = _prevResize;
|
ResizeMode = _prevResize;
|
||||||
WindowStyle = _prevStyle;
|
WindowStyle = _prevStyle;
|
||||||
|
|
@ -1048,11 +1043,12 @@ public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
SidebarColumn.Width = _categoriesCollapsed ? new GridLength(0) : new GridLength(180);
|
SidebarColumn.Width = _categoriesCollapsed ? new GridLength(0) : new GridLength(180);
|
||||||
ChannelsColumn.Width = _listCollapsed ? new GridLength(0) : new GridLength(280);
|
ChannelsColumn.Width = _listCollapsed ? new GridLength(0) : new GridLength(280);
|
||||||
// Burger-Button nur bei TV/Radio anzeigen (nicht bei WebView - Doppelklick-Problem)
|
|
||||||
var isWeb = _currentChannel?.Kind == ChannelKind.Web;
|
|
||||||
BtnSidebarToggleOverlay.Visibility = (_categoriesCollapsed && _listCollapsed && !isWeb)
|
|
||||||
? Visibility.Visible : Visibility.Collapsed;
|
|
||||||
_sidebarHidden = _categoriesCollapsed && _listCollapsed;
|
_sidebarHidden = _categoriesCollapsed && _listCollapsed;
|
||||||
|
// Titelleiste: Hinweis wenn Seitenleiste eingeklappt
|
||||||
|
if (_sidebarHidden)
|
||||||
|
Title = "HomeStream — Strg+B → Menü";
|
||||||
|
else if (_currentChannel?.Kind != ChannelKind.Web)
|
||||||
|
Title = "HomeStream";
|
||||||
}
|
}
|
||||||
|
|
||||||
// ────────── Hotkeys ──────────
|
// ────────── Hotkeys ──────────
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue