SettingsLoggingView.axaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsLoggingView"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  8. xmlns:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
  9. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  10. mc:Ignorable="d"
  11. x:DataType="viewModels:SettingsViewModel">
  12. <Design.DataContext>
  13. <viewModels:SettingsViewModel />
  14. </Design.DataContext>
  15. <ScrollViewer
  16. Name="LoggingPage"
  17. HorizontalAlignment="Stretch"
  18. VerticalAlignment="Stretch"
  19. HorizontalScrollBarVisibility="Disabled"
  20. VerticalScrollBarVisibility="Auto">
  21. <Border Classes="settings">
  22. <StackPanel
  23. Margin="10"
  24. HorizontalAlignment="Stretch"
  25. Orientation="Vertical"
  26. Spacing="10">
  27. <TextBlock Classes="h1" Text="{ext:Locale SettingsTabLoggingLogging}" />
  28. <StackPanel Margin="10,0,0,0" Orientation="Vertical">
  29. <CheckBox IsChecked="{Binding EnableFileLog}"
  30. ToolTip.Tip="{ext:Locale FileLogTooltip}">
  31. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableLoggingToFile}" />
  32. </CheckBox>
  33. <CheckBox IsChecked="{Binding EnableStub}"
  34. ToolTip.Tip="{ext:Locale StubLogTooltip}">
  35. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableStubLogs}" />
  36. </CheckBox>
  37. <CheckBox IsChecked="{Binding EnableInfo}"
  38. ToolTip.Tip="{ext:Locale InfoLogTooltip}">
  39. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableInfoLogs}" />
  40. </CheckBox>
  41. <CheckBox IsChecked="{Binding EnableWarn}"
  42. ToolTip.Tip="{ext:Locale WarnLogTooltip}">
  43. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableWarningLogs}" />
  44. </CheckBox>
  45. <CheckBox IsChecked="{Binding EnableError}"
  46. ToolTip.Tip="{ext:Locale ErrorLogTooltip}">
  47. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableErrorLogs}" />
  48. </CheckBox>
  49. <CheckBox IsChecked="{Binding EnableGuest}"
  50. ToolTip.Tip="{ext:Locale GuestLogTooltip}">
  51. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableGuestLogs}" />
  52. </CheckBox>
  53. </StackPanel>
  54. <Separator Height="1" />
  55. <StackPanel Orientation="Vertical" Spacing="5">
  56. <TextBlock Classes="h1" Text="{ext:Locale SettingsTabLoggingDeveloperOptions}" />
  57. <TextBlock Foreground="{DynamicResource SecondaryTextColor}" Text="{ext:Locale SettingsTabLoggingDeveloperOptionsNote}" />
  58. </StackPanel>
  59. <StackPanel
  60. Margin="10,0,0,0"
  61. HorizontalAlignment="Stretch"
  62. Orientation="Vertical"
  63. Spacing="10">
  64. <StackPanel Orientation="Vertical">
  65. <CheckBox IsChecked="{Binding EnableTrace}"
  66. ToolTip.Tip="{ext:Locale TraceLogTooltip}">
  67. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableTraceLogs}" />
  68. </CheckBox>
  69. <CheckBox IsChecked="{Binding EnableFsAccessLog}"
  70. ToolTip.Tip="{ext:Locale FileAccessLogTooltip}">
  71. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableFsAccessLogs}" />
  72. </CheckBox>
  73. <CheckBox IsChecked="{Binding EnableDebug}"
  74. ToolTip.Tip="{ext:Locale DebugLogTooltip}">
  75. <TextBlock Text="{ext:Locale SettingsTabLoggingEnableDebugLogs}" />
  76. </CheckBox>
  77. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Stretch">
  78. <TextBlock VerticalAlignment="Center"
  79. ToolTip.Tip="{ext:Locale FSAccessLogModeTooltip}"
  80. Text="{ext:Locale SettingsTabLoggingFsGlobalAccessLogMode}"
  81. Width="285" />
  82. <ui:NumberBox
  83. Maximum="3"
  84. Minimum="0"
  85. Width="150"
  86. SpinButtonPlacementMode="Inline"
  87. SmallChange="1"
  88. LargeChange="1"
  89. Value="{Binding FsGlobalAccessLogMode}" />
  90. </StackPanel>
  91. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  92. <TextBlock VerticalAlignment="Center"
  93. Text="{ext:Locale SettingsTabLoggingGraphicsBackendLogLevel}"
  94. ToolTip.Tip="{ext:Locale OpenGlLogLevel}"
  95. Width="285" />
  96. <ComboBox SelectedIndex="{Binding OpenglDebugLevel}"
  97. Width="150"
  98. HorizontalContentAlignment="Left"
  99. ToolTip.Tip="{ext:Locale OpenGlLogLevel}">
  100. <ComboBoxItem>
  101. <TextBlock Text="{ext:Locale SettingsTabLoggingGraphicsBackendLogLevelNone}" />
  102. </ComboBoxItem>
  103. <ComboBoxItem>
  104. <TextBlock Text="{ext:Locale SettingsTabLoggingGraphicsBackendLogLevelError}" />
  105. </ComboBoxItem>
  106. <ComboBoxItem>
  107. <TextBlock
  108. Text="{ext:Locale SettingsTabLoggingGraphicsBackendLogLevelPerformance}" />
  109. </ComboBoxItem>
  110. <ComboBoxItem>
  111. <TextBlock Text="{ext:Locale SettingsTabLoggingGraphicsBackendLogLevelAll}" />
  112. </ComboBoxItem>
  113. </ComboBox>
  114. </StackPanel>
  115. </StackPanel>
  116. </StackPanel>
  117. </StackPanel>
  118. </Border>
  119. </ScrollViewer>
  120. </UserControl>