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"
|
||||
Panel.ZIndex="5"/>
|
||||
|
||||
<!-- Burger-Button: ausserhalb VideoOverlay, unten links in der Ecke -->
|
||||
<!-- 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)"/>
|
||||
<!-- Kein Burger-Button mehr - Strg+B zum Einblenden der Seitenleiste -->
|
||||
<TextBlock x:Name="TxtNoChannel"
|
||||
Text="Wähle einen Sender aus der Liste"
|
||||
Foreground="#666" FontSize="18"
|
||||
|
|
|
|||
|
|
@ -370,7 +370,6 @@ public partial class MainWindow : Window
|
|||
WebView.Visibility = Visibility.Collapsed;
|
||||
VideoView.Visibility = Visibility.Visible;
|
||||
VideoOverlay.Visibility = Visibility.Visible;
|
||||
Title = "HomeStream";
|
||||
|
||||
if (_libVLC == null || _player == null) return;
|
||||
try
|
||||
|
|
@ -409,15 +408,13 @@ public partial class MainWindow : Window
|
|||
RadioCover.Visibility = Visibility.Collapsed;
|
||||
VideoOverlay.Visibility = Visibility.Collapsed;
|
||||
WebView.Visibility = Visibility.Visible;
|
||||
Title = "HomeStream — Strg+B → Menü";
|
||||
// Titelleiste via ApplySidebarLayout gesetzt
|
||||
|
||||
TxtEpgNow.Text = "🌐 Browser";
|
||||
TxtEpgNext.Text = "";
|
||||
TxtChannelSource.Text = "● Web";
|
||||
TxtChannelSource.Foreground = new System.Windows.Media.SolidColorBrush(
|
||||
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)
|
||||
{
|
||||
|
|
@ -658,7 +655,6 @@ public partial class MainWindow : Window
|
|||
SidebarColumn.Width = new GridLength(0);
|
||||
ChannelsColumn.Width = new GridLength(0);
|
||||
BottomBar.Visibility = Visibility.Collapsed;
|
||||
BtnSidebarToggleOverlay.Visibility = Visibility.Collapsed;
|
||||
|
||||
ResizeMode = ResizeMode.NoResize;
|
||||
WindowStyle = WindowStyle.None;
|
||||
|
|
@ -674,7 +670,6 @@ public partial class MainWindow : Window
|
|||
ChannelsColumn.Width = new GridLength(280);
|
||||
}
|
||||
BottomBar.Visibility = Visibility.Visible;
|
||||
BtnSidebarToggleOverlay.Visibility = _sidebarHidden ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
ResizeMode = _prevResize;
|
||||
WindowStyle = _prevStyle;
|
||||
|
|
@ -1048,11 +1043,12 @@ public partial class MainWindow : Window
|
|||
{
|
||||
SidebarColumn.Width = _categoriesCollapsed ? new GridLength(0) : new GridLength(180);
|
||||
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;
|
||||
// Titelleiste: Hinweis wenn Seitenleiste eingeklappt
|
||||
if (_sidebarHidden)
|
||||
Title = "HomeStream — Strg+B → Menü";
|
||||
else if (_currentChannel?.Kind != ChannelKind.Web)
|
||||
Title = "HomeStream";
|
||||
}
|
||||
|
||||
// ────────── Hotkeys ──────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue