Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Full Screen option #1336

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion OpenUtau/Strings/Strings.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Expressions...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>
<system:String x:Key="menu.tools">Tools</system:String>
<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>
<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>
<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>
Expand Down Expand Up @@ -567,4 +568,4 @@ General
<system:String x:Key="warning">Warning</system:String>
<system:String x:Key="warning.asciipath">Your OpenUtau home path "{0}" contains non-ASCII character. Exe resamplers may not work.</system:String>
<system:String x:Key="warning.renderer">No settings for this renderer.</system:String>
</ResourceDictionary>
</ResourceDictionary>
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.de-DE.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">Ausdrücke...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Tempo Anpassen (Timing beibehalten)</system:String>
<system:String x:Key="menu.tools">Werkzeuge</system:String>
<system:String x:Key="menu.tools.fullscreen">Vollbild</system:String>
<system:String x:Key="menu.tools.clearcache">Cache leeren</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug Fenster</system:String>
<system:String x:Key="menu.tools.dependency.install">Installiere Abhängigkeit (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.es-ES.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Herramientas</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<!--<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>-->
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.es-MX.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">_Herramientas</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Limpiar caché</system:String>
<system:String x:Key="menu.tools.debugwindow">Ventana de depuración</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.fi-FI.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Työkalut</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<!--<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>-->
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.fr-FR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Outils</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Effacer le Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Fenêtre de débogage</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.id-ID.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Peralatan</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Hapus Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Jendela Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.it-IT.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Strumenti</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Svuota Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Finestra di Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ja-JP.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
<system:String x:Key="menu.project.expressions">表情...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">音符の位置を維持したままテンポを再設定</system:String>
<system:String x:Key="menu.tools">ツール</system:String>
<system:String x:Key="menu.tools.fullscreen">フルスクリーン</system:String>
<system:String x:Key="menu.tools.clearcache">キャッシュクリア</system:String>
<system:String x:Key="menu.tools.debugwindow">デバッグウインドウ</system:String>
<system:String x:Key="menu.tools.dependency.install">依存関係ファイルをインストール(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ko-KR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">표현 목록...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">템포 조정 (타이밍은 유지)</system:String>
<system:String x:Key="menu.tools">도구</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">캐시 삭제</system:String>
<system:String x:Key="menu.tools.debugwindow">디버그 창</system:String>
<system:String x:Key="menu.tools.dependency.install">의존 요소 설치(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.nl-NL.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">_Tools</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Cache wissen</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug venster</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.pl-PL.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Ekspresje...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Dostosuj tempo (zachowaj timing)</system:String>
<system:String x:Key="menu.tools">Narzędzia</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Wyczyść cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Okno debugowania</system:String>
<system:String x:Key="menu.tools.dependency.install">Zainstaluj zależność (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.pt-BR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Ferramentas</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Limpar Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Janela de Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ru-RU.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">Выражения...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Регулировка темпа (сохранение тайминга)</system:String>
<system:String x:Key="menu.tools">Инструменты</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Очистить кэш</system:String>
<system:String x:Key="menu.tools.debugwindow">Окно отладки</system:String>
<system:String x:Key="menu.tools.dependency.install">Установить зависимость (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.th-TH.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">เครื่องมือ</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">ล้างแคช</system:String>
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.vi-VN.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Biểu cảm...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Chỉnh nhịp độ (Giữ trường độ)</system:String>
<system:String x:Key="menu.tools">Công cụ</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">Xoá bộ nhớ đệm</system:String>
<system:String x:Key="menu.tools.debugwindow">Mở cửa sổ Debug</system:String>
<system:String x:Key="menu.tools.dependency.install">Cài đặt tệp phụ thuộc (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.zh-CN.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">表情...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">修复曲速(保持绝对时长)</system:String>
<system:String x:Key="menu.tools">工具</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">清空缓存</system:String>
<system:String x:Key="menu.tools.debugwindow">调试窗口</system:String>
<system:String x:Key="menu.tools.dependency.install">安装依赖项(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.zh-TW.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">工具</system:String>
<!--<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>-->
<system:String x:Key="menu.tools.clearcache">清除快取</system:String>
<system:String x:Key="menu.tools.debugwindow">除錯視窗</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
3 changes: 2 additions & 1 deletion OpenUtau/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<MenuItem Header="{DynamicResource menu.tools.layout.hsplit12}" Click="OnMenuLayoutHSplit12"/>
<MenuItem Header="{DynamicResource menu.tools.layout.hsplit13}" Click="OnMenuLayoutHSplit13"/>
</MenuItem>
<MenuItem Header="{DynamicResource menu.tools.fullscreen}" InputGesture="F11" Click="OnMenuFullScreen"/>
<MenuItem Header="{Binding ClearCacheHeader}" Click="OnMenuClearCache"/>
<MenuItem Header="{DynamicResource menu.tools.debugwindow}" Click="OnMenuDebugWindow"/>
<MenuItem Header="{DynamicResource phoneticassistant.caption}" Click="OnMenuPhoneticAssistant"/>
Expand Down Expand Up @@ -270,4 +271,4 @@
</Grid>
</Grid>
</Grid>
</Window>
</Window>
11 changes: 10 additions & 1 deletion OpenUtau/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,12 @@ void OnMenuPreferences(object sender, RoutedEventArgs args) {
}
}

void OnMenuFullScreen(object sender, RoutedEventArgs args) {
this.WindowState = this.WindowState == WindowState.FullScreen
? WindowState.Normal
: WindowState.FullScreen;
}

void OnMenuClearCache(object sender, RoutedEventArgs args) {
Task.Run(() => {
DocManager.Inst.ExecuteCmd(new ProgressBarNotification(0, "Clearing cache..."));
Expand Down Expand Up @@ -744,6 +750,9 @@ void OnKeyDown(object sender, KeyEventArgs args) {
viewModel.PlaybackViewModel.MovePlayPos(endTick);
}
break;
case Key.F11:
OnMenuFullScreen(this, new RoutedEventArgs());
break;
default:
args.Handled = false;
break;
Expand Down Expand Up @@ -1350,4 +1359,4 @@ public void OnNext(UCommand cmd, bool isUndo) {
}
}
}
}
}
1 change: 1 addition & 0 deletions OpenUtau/Views/PianoRollWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
<CheckBox IsChecked="{Binding UseTrackColor}" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{DynamicResource menu.tools.fullscreen}" InputGesture="F11" Click="OnMenuFullScreen"/>
<MenuItem Header="{DynamicResource prefs.appearance.degree}">
<MenuItem Header="{DynamicResource prefs.appearance.degree.off}" Click="OnMenuDegreeStyle" Tag="0">
<MenuItem.Icon>
Expand Down
8 changes: 8 additions & 0 deletions OpenUtau/Views/PianoRollWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ void OnMenuUseTrackColor(object sender, RoutedEventArgs args) {
ViewModel.RaisePropertyChanged(nameof(ViewModel.UseTrackColor));
MessageBus.Current.SendMessage(new PianorollRefreshEvent("TrackColor"));
}
void OnMenuFullScreen(object sender, RoutedEventArgs args) {
this.WindowState = this.WindowState == WindowState.FullScreen
? WindowState.Normal
: WindowState.FullScreen;
}
void OnMenuDegreeStyle(object sender, RoutedEventArgs args) {
if (sender is MenuItem menu && int.TryParse(menu.Tag?.ToString(), out int tag)) {
Preferences.Default.DegreeStyle = tag;
Expand Down Expand Up @@ -1146,6 +1151,9 @@ bool OnKeyExtendedHandler(KeyEventArgs args) {
return true;
}
break;
case Key.F11:
OnMenuFullScreen(this, new RoutedEventArgs());
break;
case Key.Enter:
if (isNone) {
if (notesVm.Selection.Count == 1) {
Expand Down
Loading