WebView: Burger-Button im Browser-Modus komplett ausblenden - Strg+B als Alternative
This commit is contained in:
parent
083c1e0e20
commit
a3e7fb780e
1 changed files with 6 additions and 2 deletions
|
|
@ -413,7 +413,9 @@ public partial class MainWindow : Window
|
|||
TxtEpgNext.Text = "";
|
||||
TxtChannelSource.Text = "● Web";
|
||||
TxtChannelSource.Foreground = new System.Windows.Media.SolidColorBrush(
|
||||
System.Windows.Media.Color.FromRgb(0xFF, 0x99, 0x00)); // Orange für Web
|
||||
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)
|
||||
{
|
||||
|
|
@ -1044,7 +1046,9 @@ public partial class MainWindow : Window
|
|||
{
|
||||
SidebarColumn.Width = _categoriesCollapsed ? new GridLength(0) : new GridLength(180);
|
||||
ChannelsColumn.Width = _listCollapsed ? new GridLength(0) : new GridLength(280);
|
||||
BtnSidebarToggleOverlay.Visibility = (_categoriesCollapsed && _listCollapsed)
|
||||
// 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue