mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
Compare commits
13 Commits
v1.0.106.0
...
v1.0.112.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8288d62af2 | ||
|
|
bd82deb5ae | ||
|
|
5093939bff | ||
|
|
340a41f920 | ||
|
|
3580f2eb0e | ||
|
|
2e792b50b2 | ||
|
|
7a063a1192 | ||
|
|
8485990250 | ||
|
|
fb16874d60 | ||
|
|
87afdf539a | ||
|
|
ce9cb23d6f | ||
|
|
27629a298b | ||
|
|
0d051669fc |
@@ -12,7 +12,7 @@
|
||||
<Identity
|
||||
Name="37412.BetterLyrics"
|
||||
Publisher="CN=E1428B0E-DC1D-4EA4-ACB1-4556569D5BA9"
|
||||
Version="1.0.106.0" />
|
||||
Version="1.0.112.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="ca4a4830-fc19-40d9-b823-53e2bff3d816" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ namespace BetterLyrics.WinUI3
|
||||
.AddSingleton<LyricsPageViewModel>()
|
||||
.AddSingleton<MusicGalleryViewModel>()
|
||||
.AddSingleton<LyricsRendererViewModel>()
|
||||
.AddSingleton<AboutControlViewModel>()
|
||||
.BuildServiceProvider()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<ItemGroup>
|
||||
<None Remove="Assets\Segoe Fluent Icons.ttf" />
|
||||
<None Remove="Assets\Wiki82.profile.xml" />
|
||||
<None Remove="Controls\AboutControl.xaml" />
|
||||
<None Remove="Controls\AlbumArtLayoutSettingsControl.xaml" />
|
||||
<None Remove="Controls\AppSettingsControl.xaml" />
|
||||
<None Remove="Controls\DemoWindowGrid.xaml" />
|
||||
@@ -317,6 +318,11 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="TemplateSelector\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Update="Controls\AboutControl.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<!-- Publish Properties -->
|
||||
<PropertyGroup>
|
||||
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
|
||||
|
||||
@@ -9,7 +9,8 @@ namespace BetterLyrics.WinUI3.Constants
|
||||
public static class Link
|
||||
{
|
||||
public const string GitHubUrl = "https://github.com/jayfunc/BetterLyrics";
|
||||
public const string WikiUrl = "https://github.com/jayfunc/BetterLyrics/wiki";
|
||||
public const string ShareHubUrl = $"{GitHubUrl}/blob/dev/ShareHub/index.md";
|
||||
public const string WikiUrl = $"{GitHubUrl}/wiki";
|
||||
public const string AppleMusicCfgUrl = $"{WikiUrl}/%5BEN%5D-Lyrics-provider-configuration#apple-music";
|
||||
public const string FAQUrl = $"{GitHubUrl}/blob/dev/FAQ/index.md";
|
||||
public const string QQGroupUrl = "https://qun.qq.com/universal-share/share?ac=1&authKey=4Q%2BYTq3wZldYpF5SbS5c19ECFsiYoLZFAIcBNNzYpBUtiEjaZ8sZ%2F%2BnFN0qw3lad&busi_data=eyJncm91cENvZGUiOiIxMDU0NzAwMzg4IiwidG9rZW4iOiJiVnhqemVYN0N5QVc3b1ZkR24wWmZOTUtvUkJoWm1JRWlaWW5iZnlBcXJtZUtGc2FFTHNlUlFZMi9iRm03cWF5IiwidWluIjoiMTM5NTczOTY2MCJ9&data=39UmAihyH_o6CZaOs7nk2mO_lz2ruODoDou6pxxh7utcxP4WF5sbDBDOPvZ_Wqfzeey4441anegsLYQJxkrBAA&svctype=4&tempid=h5_group_info";
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace BetterLyrics.WinUI3.Constants
|
||||
public static class PlayerID
|
||||
{
|
||||
public const string LXMusic = "cn.toside.music.desktop";
|
||||
public const string LXMusicPortable = "lx-music-desktop.exe";
|
||||
public const string MediaPlayerWindows11 = "Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic";
|
||||
public const string AIMP = "AIMP.exe";
|
||||
public const string Foobar2000 = "foobar2000.exe";
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace BetterLyrics.WinUI3.Constants
|
||||
public class PlayerName
|
||||
{
|
||||
public const string LXMusic = "LX Music";
|
||||
public const string LXMusicPortable = "LX Music (Portable)";
|
||||
public const string MediaPlayerWindows11 = "Media Player";
|
||||
public const string AIMP = "AIMP";
|
||||
public const string Foobar2000 = "foobar2000";
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<UserControl
|
||||
x:Class="BetterLyrics.WinUI3.Controls.AboutControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:const="using:BetterLyrics.WinUI3.Constants"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dev="using:DevWinUI"
|
||||
xmlns:helper="using:BetterLyrics.WinUI3.Helper"
|
||||
xmlns:local="using:BetterLyrics.WinUI3.Controls"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:uc="using:BetterLyrics.WinUI3.Controls"
|
||||
xmlns:ui="using:CommunityToolkit.WinUI"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
|
||||
<ScrollViewer Style="{StaticResource SettingsScrollViewerStyle}">
|
||||
<Grid Style="{StaticResource SettingsGridStyle}">
|
||||
<StackPanel Spacing="{StaticResource SettingsCardSpacing}">
|
||||
|
||||
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<dev:SettingsExpander HeaderIcon="{ui:BitmapIcon Source=ms-appx:///Assets/Logo.png}" IsExpanded="True">
|
||||
<dev:SettingsExpander.Header>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBlock Text="BetterLyrics" />
|
||||
</StackPanel>
|
||||
</dev:SettingsExpander.Header>
|
||||
<dev:SettingsExpander.Description>
|
||||
<StackPanel
|
||||
Margin="0,2,0,0"
|
||||
Orientation="Horizontal"
|
||||
Spacing="2">
|
||||
<TextBlock Text="©" />
|
||||
<HyperlinkButton
|
||||
Margin="0,-1,0,0"
|
||||
Content="Zhe Fang"
|
||||
NavigateUri="https://github.com/jayfunc" />
|
||||
<TextBlock Text="2025" />
|
||||
</StackPanel>
|
||||
</dev:SettingsExpander.Description>
|
||||
<RichTextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
||||
<Paragraph>
|
||||
<Run x:Uid="SettingsPageVersion" />
|
||||
<Run Text="{x:Bind helper:MetadataHelper.AppVersion}" />
|
||||
</Paragraph>
|
||||
</RichTextBlock>
|
||||
<dev:SettingsExpander.Items>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageInstructions" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="GitHub" NavigateUri="{x:Bind const:Link.GitHubUrl}" />
|
||||
<HyperlinkButton Content="Wiki" NavigateUri="{x:Bind const:Link.WikiUrl}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageFeedback" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton x:Uid="SettingsPageQQGroup" NavigateUri="{x:Bind const:Link.QQGroupUrl}" />
|
||||
<HyperlinkButton x:Uid="SettingsPageDiscord" NavigateUri="{x:Bind const:Link.DiscordUrl}" />
|
||||
<HyperlinkButton x:Uid="SettingsPageTelegram" NavigateUri="{x:Bind const:Link.TelegramUrl}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageDonation" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="Buy Me a Coffee" NavigateUri="https://buymeacoffee.com/founchoo" />
|
||||
<HyperlinkButton Content="PayPal" NavigateUri="https://paypal.me/zhefangpay" />
|
||||
<Button
|
||||
Content="支付宝"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Style="{StaticResource GhostButtonStyle}">
|
||||
<Button.Flyout>
|
||||
<Flyout>
|
||||
<Flyout.FlyoutPresenterStyle>
|
||||
<Style TargetType="FlyoutPresenter">
|
||||
<Setter Property="CornerRadius" Value="12" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
</Style>
|
||||
</Flyout.FlyoutPresenterStyle>
|
||||
<Image Height="300" Source="/Assets/Alipay.jpg" />
|
||||
</Flyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
<Button
|
||||
Content="微信"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Style="{StaticResource GhostButtonStyle}">
|
||||
<Button.Flyout>
|
||||
<Flyout>
|
||||
<Flyout.FlyoutPresenterStyle>
|
||||
<Style TargetType="FlyoutPresenter">
|
||||
<Setter Property="CornerRadius" Value="12" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
</Style>
|
||||
</Flyout.FlyoutPresenterStyle>
|
||||
<Image Height="300" Source="/Assets/WeChatReward.png" />
|
||||
</Flyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="*" />
|
||||
<TextBlock
|
||||
x:Uid="SetingsPageThanks"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageContributors" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="jayfunc" NavigateUri="https://github.com/jayfunc" />
|
||||
<HyperlinkButton Content="Raspberry-Monster" NavigateUri="https://github.com/Raspberry-Monster" />
|
||||
<HyperlinkButton Content="ZHider" NavigateUri="https://github.com/ZHider" />
|
||||
<HyperlinkButton Content="kusutori" NavigateUri="https://github.com/kusutori" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
</dev:SettingsExpander.Items>
|
||||
<dev:SettingsExpander.ItemsFooter>
|
||||
<InfoBar
|
||||
x:Uid="SettingsPageDisclaimer"
|
||||
BorderThickness="0"
|
||||
CornerRadius="0"
|
||||
IsClosable="False"
|
||||
IsOpen="True"
|
||||
Severity="Warning" />
|
||||
</dev:SettingsExpander.ItemsFooter>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageMockMusicPlaying">
|
||||
<HyperlinkButton x:Uid="SettingsPagePlayingMockMusicButton" NavigateUri="https://soundcloud.com/carlyraejepsen/cut-to-the-feeling" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageCache" IsExpanded="True">
|
||||
<Button x:Uid="SettingsPageOpenFolderButton" Command="{x:Bind ViewModel.OpenCacheFolderCommand}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
<dev:SettingsCard>
|
||||
<Button x:Uid="SettingsPageClearCache" Command="{x:Bind ViewModel.ClearCacheFilesCommand}" />
|
||||
</dev:SettingsCard>
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageSettings">
|
||||
<Button x:Uid="SettingsPageOpenFolderButton" Command="{x:Bind ViewModel.OpenSettingsFolderCommand}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageSettingsManager" IsExpanded="True">
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<Button x:Uid="SettingsPageImportSettingsButton" Command="{x:Bind ViewModel.ImportSettingsCommand}" />
|
||||
<Button x:Uid="SettingsPageExportSettingsButton" Command="{x:Bind ViewModel.ExportSettingsCommand}" />
|
||||
</StackPanel>
|
||||
<dev:SettingsExpander.ItemsHeader>
|
||||
<InfoBar
|
||||
x:Uid="SettingsPageImportSettingsInfo"
|
||||
BorderThickness="0"
|
||||
CornerRadius="0"
|
||||
IsClosable="False"
|
||||
IsOpen="True"
|
||||
Severity="Warning" />
|
||||
</dev:SettingsExpander.ItemsHeader>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageDebugOverlay">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.IsDebugOverlayEnabled, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageFixedTimeStep" Visibility="Collapsed">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.AdvancedSettings.IsFixedTimeStep, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageFPS" Visibility="Collapsed">
|
||||
<uc:ExtendedSlider
|
||||
Default="60"
|
||||
Frequency="10"
|
||||
Maximum="240"
|
||||
Minimum="30"
|
||||
Value="{x:Bind ViewModel.AppSettings.AdvancedSettings.FPS, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,33 @@
|
||||
using BetterLyrics.WinUI3.ViewModels;
|
||||
using CommunityToolkit.Mvvm.DependencyInjection;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Microsoft.UI.Xaml.Controls.Primitives;
|
||||
using Microsoft.UI.Xaml.Data;
|
||||
using Microsoft.UI.Xaml.Input;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
using Microsoft.UI.Xaml.Navigation;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
|
||||
// To learn more about WinUI, the WinUI project structure,
|
||||
// and more about our project templates, see: http://aka.ms/winui-project-info.
|
||||
|
||||
namespace BetterLyrics.WinUI3.Controls
|
||||
{
|
||||
public sealed partial class AboutControl : UserControl
|
||||
{
|
||||
public AboutControlViewModel ViewModel => (AboutControlViewModel)DataContext;
|
||||
|
||||
public AboutControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = Ioc.Default.GetRequiredService<AboutControlViewModel>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,42 +48,42 @@
|
||||
|
||||
<TextBlock x:Uid="SettingsPageAppBehavior" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoStart">
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoStart" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch
|
||||
x:Name="AutoStartupToggleSwitch"
|
||||
Loaded="AutoStartupToggleSwitch_Loaded"
|
||||
Unloaded="AutoStartupToggleSwitch_Unloaded" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoOpenMusicGalleryWindow">
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoOpenMusicGalleryWindow" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.MusicGallerySettings.AutoOpen, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoPlayWhenOpenMusicGalleryWindow">
|
||||
<dev:SettingsCard x:Uid="SettingsPageAutoPlayWhenOpenMusicGalleryWindow" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.MusicGallerySettings.AutoPlay, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageExitOnLyricsWindowClosed">
|
||||
<dev:SettingsCard x:Uid="SettingsPageExitOnLyricsWindowClosed" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.GeneralSettings.ExitOnLyricsWindowClosed, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageListenNewSession">
|
||||
<dev:SettingsCard x:Uid="SettingsPageListenNewSession" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.GeneralSettings.ListenOnNewPlaybackSource, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageShowHideHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPageShowHideHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.ShowOrHideLyricsWindowShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageBorderlessHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPageBorderlessHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.BorderlessShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageClickThroughHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPageClickThroughHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.ClickThroughShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageLyricsWindowSwitchHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPageLyricsWindowSwitchHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.LyricsWindowSwitchShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
@@ -91,15 +91,15 @@
|
||||
|
||||
<TextBlock x:Uid="SettingsPagePlaybackShortcut" Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPagePlayOrPauseSongHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPagePlayOrPauseSongHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.PlayOrPauseShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageNextSongHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPageNextSongHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.NextSongShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPagePreviousSongHotKey">
|
||||
<dev:SettingsCard x:Uid="SettingsPagePreviousSongHotKey" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<local:ShortcutTextBox Shortcut="{x:Bind ViewModel.AppSettings.GeneralSettings.PreviousSongShortcut, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageTheme">
|
||||
<dev:SettingsCard x:Uid="SettingsPageTheme" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ComboBox x:Name="ThemeComboBox" SelectedIndex="{x:Bind LyricsBackgroundSettings.LyricsBackgroundTheme, Mode=TwoWay, Converter={StaticResource EnumToIntConverter}}">
|
||||
<ComboBoxItem x:Uid="SettingsPageFollowSystem" />
|
||||
<ComboBoxItem x:Uid="SettingsPageLight" />
|
||||
@@ -27,7 +27,11 @@
|
||||
</ComboBox>
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPagePureLayer" IsExpanded="{x:Bind LyricsBackgroundSettings.IsPureColorOverlayEnabled, Mode=OneWay}">
|
||||
<dev:SettingsExpander
|
||||
x:Uid="SettingsPagePureLayer"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily},
|
||||
Glyph=}"
|
||||
IsExpanded="{x:Bind LyricsBackgroundSettings.IsPureColorOverlayEnabled, Mode=OneWay}">
|
||||
<ToggleSwitch IsOn="{x:Bind LyricsBackgroundSettings.IsPureColorOverlayEnabled, Mode=TwoWay}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
|
||||
@@ -43,7 +47,11 @@
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageAlbumArtLayer" IsExpanded="{x:Bind LyricsBackgroundSettings.IsCoverOverlayEnabled, Mode=OneWay}">
|
||||
<dev:SettingsExpander
|
||||
x:Uid="SettingsPageAlbumArtLayer"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily},
|
||||
Glyph=}"
|
||||
IsExpanded="{x:Bind LyricsBackgroundSettings.IsCoverOverlayEnabled, Mode=OneWay}">
|
||||
<ToggleSwitch IsOn="{x:Bind LyricsBackgroundSettings.IsCoverOverlayEnabled, Mode=TwoWay}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
|
||||
@@ -84,7 +92,11 @@
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageFluidLayer" IsExpanded="{x:Bind LyricsBackgroundSettings.IsFluidOverlayEnabled, Mode=OneWay}">
|
||||
<dev:SettingsExpander
|
||||
x:Uid="SettingsPageFluidLayer"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily},
|
||||
Glyph=}"
|
||||
IsExpanded="{x:Bind LyricsBackgroundSettings.IsFluidOverlayEnabled, Mode=OneWay}">
|
||||
<ToggleSwitch IsOn="{x:Bind LyricsBackgroundSettings.IsFluidOverlayEnabled, Mode=TwoWay}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
|
||||
@@ -107,7 +119,11 @@
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageSnowFlakeLayer" IsExpanded="{x:Bind LyricsBackgroundSettings.IsSnowFlakeOverlayEnabled, Mode=OneWay}">
|
||||
<dev:SettingsExpander
|
||||
x:Uid="SettingsPageSnowFlakeLayer"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily},
|
||||
Glyph=}"
|
||||
IsExpanded="{x:Bind LyricsBackgroundSettings.IsSnowFlakeOverlayEnabled, Mode=OneWay}">
|
||||
<ToggleSwitch IsOn="{x:Bind LyricsBackgroundSettings.IsSnowFlakeOverlayEnabled, Mode=TwoWay}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
<dev:SettingsCard x:Uid="SettingsPageAmount">
|
||||
@@ -120,7 +136,7 @@
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageSpectrumLayer">
|
||||
<dev:SettingsCard x:Uid="SettingsPageSpectrumLayer" HeaderIcon="{ui:FontIcon FontFamily={StaticResource IconFontFamily}, Glyph=}">
|
||||
<ToggleSwitch IsOn="{x:Bind LyricsBackgroundSettings.IsSpectrumOverlayEnabled, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
x:Class="BetterLyrics.WinUI3.Controls.LyricsWindowSettingsControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:constants="using:BetterLyrics.WinUI3.Constants"
|
||||
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dev="using:DevWinUI"
|
||||
@@ -28,18 +29,40 @@
|
||||
RelativePanel.AlignLeftWithPanel="True"
|
||||
Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<Button x:Uid="SettingsPageCreateFromCurrent" Command="{x:Bind ViewModel.CopyLyricsWindowStatusCommand}" />
|
||||
<Button x:Uid="SettingsPageCreateFromTemplates">
|
||||
<Button.Flyout>
|
||||
<MenuFlyout>
|
||||
<MenuFlyoutItem x:Uid="SettingsPageStandardMode" Command="{x:Bind ViewModel.CreateStandardLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageDesktopMode" Command="{x:Bind ViewModel.CreateTransparentLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageDockedMode" Command="{x:Bind ViewModel.CreateDockedLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageFullscreenMode" Command="{x:Bind ViewModel.CreateFullLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageNarrowMode" Command="{x:Bind ViewModel.CreateNarrowLyricsWindowStatusCommand}" />
|
||||
</MenuFlyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
<StackPanel Orientation="Horizontal" Spacing="3">
|
||||
|
||||
<!-- Create from templates -->
|
||||
<Button Content="{ui:FontIcon FontSize=16, FontFamily={StaticResource IconFontFamily}, Glyph=}" Style="{StaticResource GhostButtonStyle}">
|
||||
<ToolTipService.ToolTip>
|
||||
<ToolTip x:Uid="SettingsPageCreateFromTemplates" />
|
||||
</ToolTipService.ToolTip>
|
||||
<Button.Flyout>
|
||||
<MenuFlyout>
|
||||
<MenuFlyoutItem x:Uid="SettingsPageStandardMode" Command="{x:Bind ViewModel.CreateStandardLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageDesktopMode" Command="{x:Bind ViewModel.CreateTransparentLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageDockedMode" Command="{x:Bind ViewModel.CreateDockedLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageFullscreenMode" Command="{x:Bind ViewModel.CreateFullLyricsWindowStatusCommand}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageNarrowMode" Command="{x:Bind ViewModel.CreateNarrowLyricsWindowStatusCommand}" />
|
||||
</MenuFlyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
|
||||
<!-- Import -->
|
||||
<Button
|
||||
Click="ImportButton_Click"
|
||||
Content="{ui:FontIcon FontFamily={StaticResource IconFontFamily},
|
||||
FontSize=16,
|
||||
Glyph=}"
|
||||
Style="{StaticResource GhostButtonStyle}">
|
||||
<ToolTipService.ToolTip>
|
||||
<ToolTip x:Uid="SettingsPageImport" />
|
||||
</ToolTipService.ToolTip>
|
||||
</Button>
|
||||
|
||||
<!-- Sharing hub -->
|
||||
<HyperlinkButton x:Uid="SettingsPageShareHub" NavigateUri="{x:Bind constants:Link.ShareHubUrl}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Padding="24,0"
|
||||
@@ -71,6 +94,8 @@
|
||||
x:Uid="LyricsWindowSettingsControlSetDefault"
|
||||
Click="SetDefaultMenuFlyoutItem_Click"
|
||||
IsEnabled="{Binding IsDefault, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" />
|
||||
<MenuFlyoutItem x:Uid="SettingsPageCreateFromCurrent" Click="CopyMenuFlyoutItem_Click" />
|
||||
<MenuFlyoutItem x:Uid="LyricsWindowSettingsControlShare" Click="ShareMenuFlyoutItem_Click" />
|
||||
<MenuFlyoutItem
|
||||
x:Uid="SettingsPageDelete"
|
||||
Click="DeleteMenuFlyoutItem_Click"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Models;
|
||||
using BetterLyrics.WinUI3.Models.Settings;
|
||||
using BetterLyrics.WinUI3.Serialization;
|
||||
using BetterLyrics.WinUI3.Services.LiveStatesService;
|
||||
using BetterLyrics.WinUI3.Services.ResourceService;
|
||||
using BetterLyrics.WinUI3.Services.SettingsService;
|
||||
using BetterLyrics.WinUI3.ViewModels;
|
||||
using BetterLyrics.WinUI3.Views;
|
||||
@@ -21,6 +23,8 @@ using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.Storage;
|
||||
using WinRT.Interop;
|
||||
using static Vanara.PInvoke.ComCtl32;
|
||||
|
||||
// To learn more about WinUI, the WinUI project structure,
|
||||
@@ -34,6 +38,7 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
|
||||
private readonly ISettingsService _settingsService = Ioc.Default.GetRequiredService<ISettingsService>();
|
||||
private readonly ILiveStatesService _liveStatesService = Ioc.Default.GetRequiredService<ILiveStatesService>();
|
||||
private readonly IResourceService _resourceService = Ioc.Default.GetRequiredService<IResourceService>();
|
||||
|
||||
public LyricsWindowSettingsControl()
|
||||
{
|
||||
@@ -45,9 +50,12 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
{
|
||||
if (sender is MenuFlyoutItem menuFlyoutItem)
|
||||
{
|
||||
var data = menuFlyoutItem.DataContext as LyricsWindowStatus;
|
||||
if (data != null)
|
||||
if (menuFlyoutItem.DataContext is LyricsWindowStatus data)
|
||||
{
|
||||
if (_liveStatesService.LiveStates.LyricsWindowStatus == data)
|
||||
{
|
||||
_liveStatesService.LiveStates.LyricsWindowStatus = ViewModel.AppSettings.WindowBoundsRecords.First();
|
||||
}
|
||||
ViewModel.AppSettings.WindowBoundsRecords.Remove(data);
|
||||
}
|
||||
}
|
||||
@@ -57,8 +65,7 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
{
|
||||
if (sender is MenuFlyoutItem menuFlyoutItem)
|
||||
{
|
||||
var data = menuFlyoutItem.DataContext as LyricsWindowStatus;
|
||||
if (data != null)
|
||||
if (menuFlyoutItem.DataContext is LyricsWindowStatus data)
|
||||
{
|
||||
ViewModel.AppSettings.WindowBoundsRecords.ForEach(x => x.IsDefault = false);
|
||||
data.IsDefault = true;
|
||||
@@ -66,6 +73,50 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
}
|
||||
}
|
||||
|
||||
private async void ShareMenuFlyoutItem_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is MenuFlyoutItem menuFlyoutItem)
|
||||
{
|
||||
if (menuFlyoutItem.DataContext is LyricsWindowStatus data)
|
||||
{
|
||||
IDictionary<string, IList<string>> fileTypeChoices = new Dictionary<string, IList<string>>()
|
||||
{
|
||||
{ "JSON", new List<string>() { ".json" } }
|
||||
};
|
||||
StorageFile? file;
|
||||
if (this.Parent is FlyoutPresenter)
|
||||
{
|
||||
file = await PickerHelper.PickSaveFileAsync<LyricsWindow>(fileTypeChoices);
|
||||
}
|
||||
else
|
||||
{
|
||||
file = await PickerHelper.PickSaveFileAsync<SettingsWindow>(fileTypeChoices);
|
||||
}
|
||||
if (file != null)
|
||||
{
|
||||
var clonedData = (LyricsWindowStatus)data.Clone();
|
||||
clonedData.IsDefault = false;
|
||||
var json = System.Text.Json.JsonSerializer.Serialize(clonedData, SourceGenerationContext.Default.LyricsWindowStatus);
|
||||
File.WriteAllText(file.Path, json);
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ExportSettingsSuccess"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CopyMenuFlyoutItem_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is MenuFlyoutItem menuFlyoutItem)
|
||||
{
|
||||
if (menuFlyoutItem.DataContext is LyricsWindowStatus data)
|
||||
{
|
||||
var clonedData = (LyricsWindowStatus)data.Clone();
|
||||
clonedData.IsDefault = false;
|
||||
ViewModel.AppSettings.WindowBoundsRecords.Add(clonedData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StackPanel_RightTapped(object sender, RightTappedRoutedEventArgs e)
|
||||
{
|
||||
if (sender is StackPanel stackPanel)
|
||||
@@ -87,5 +138,29 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void ImportButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string[] fileTypeFilter = [".json"];
|
||||
StorageFile? file;
|
||||
if (this.Parent is FlyoutPresenter)
|
||||
{
|
||||
file = await PickerHelper.PickSingleFileAsync<LyricsWindow>(fileTypeFilter);
|
||||
}
|
||||
else
|
||||
{
|
||||
file = await PickerHelper.PickSingleFileAsync<SettingsWindow>(fileTypeFilter);
|
||||
}
|
||||
if (file != null)
|
||||
{
|
||||
var json = File.ReadAllText(file.Path);
|
||||
var data = System.Text.Json.JsonSerializer.Deserialize(json, SourceGenerationContext.Default.LyricsWindowStatus);
|
||||
if (data != null)
|
||||
{
|
||||
ViewModel.AppSettings.WindowBoundsRecords.Add(data);
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ImportSettingsSuccess"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -253,9 +253,8 @@
|
||||
<dev:SettingsCard x:Uid="SettingsPageLibreTranslateServer" IsEnabled="{x:Bind ViewModel.AppSettings.TranslationSettings.IsLibreTranslateEnabled, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="12">
|
||||
<TextBox
|
||||
x:Name="LibreTranslateServerTextBox"
|
||||
x:Uid="LibreTranslateServerTextBox"
|
||||
IsEnabled="{x:Bind ViewModel.IsLibreTranslateServerTesting, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
|
||||
PlaceholderText="http://localhost:5000"
|
||||
Text="{x:Bind ViewModel.AppSettings.TranslationSettings.LibreTranslateServer, Mode=TwoWay}" />
|
||||
<Button
|
||||
x:Uid="SettingsPageServerTestButton"
|
||||
@@ -326,8 +325,8 @@
|
||||
<dev:SettingsCard x:Uid="SettingsPageServerAddress">
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBox
|
||||
x:Uid="SettingsPageLXMusicServerInput"
|
||||
IsEnabled="{x:Bind ViewModel.IsLXMusicServerTesting, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
|
||||
PlaceholderText="http://127.0.0.1:23330"
|
||||
Text="{x:Bind ViewModel.AppSettings.GeneralSettings.LXMusicServer, Mode=TwoWay}" />
|
||||
<Button
|
||||
x:Uid="SettingsPageServerTestButton"
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
}
|
||||
else
|
||||
{
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("SettingsPageShortcutRegFailInfo"));
|
||||
DevWinUI.Growl.Error(_resourceService.GetLocalizedString("SettingsPageShortcutRegFailInfo"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace BetterLyrics.WinUI3.Converter
|
||||
PlayerID.NetEaseCloudMusic => PlayerName.NetEaseCloudMusic,
|
||||
PlayerID.QQMusic => PlayerName.QQMusic,
|
||||
PlayerID.LXMusic => PlayerName.LXMusic,
|
||||
PlayerID.LXMusicPortable => PlayerName.LXMusicPortable,
|
||||
PlayerID.MediaPlayerWindows11 => PlayerName.MediaPlayerWindows11,
|
||||
PlayerID.AIMP => PlayerName.AIMP,
|
||||
PlayerID.Foobar2000 => PlayerName.Foobar2000,
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace BetterLyrics.WinUI3.Converter
|
||||
PlayerID.NetEaseCloudMusic => PathHelper.NetEaseCloudMusicLogoPath,
|
||||
PlayerID.QQMusic => PathHelper.QQMusicLogoPath,
|
||||
PlayerID.LXMusic => PathHelper.LXMusicLogoPath,
|
||||
PlayerID.LXMusicPortable => PathHelper.LXMusicLogoPath,
|
||||
PlayerID.MediaPlayerWindows11 => PathHelper.MediaPlayerWindows11LogoPath,
|
||||
PlayerID.AIMP => PathHelper.AIMPLogoPath,
|
||||
PlayerID.Foobar2000 => PathHelper.Foobar2000LogoPath,
|
||||
|
||||
@@ -20,17 +20,10 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
var vault = new PasswordVault();
|
||||
|
||||
// 删除旧值(避免重复存储)
|
||||
try
|
||||
var oldCredential = vault.FindAllByResource(resource).Where(x => x.UserName == key).FirstOrDefault();
|
||||
if (oldCredential != null)
|
||||
{
|
||||
var oldCredential = vault.Retrieve(resource, key);
|
||||
if (oldCredential != null)
|
||||
{
|
||||
vault.Remove(oldCredential);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// 没有旧值就忽略
|
||||
vault.Remove(oldCredential);
|
||||
}
|
||||
|
||||
vault.Add(new PasswordCredential(resource, key, value));
|
||||
@@ -45,13 +38,13 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
public static string? Get(string resource, string key)
|
||||
{
|
||||
var vault = new PasswordVault();
|
||||
try
|
||||
var credential = vault.FindAllByResource(resource).Where(x => x.UserName == key).FirstOrDefault();
|
||||
if (credential != null)
|
||||
{
|
||||
var credential = vault.Retrieve(resource, key);
|
||||
credential.RetrievePassword();
|
||||
return credential.Password;
|
||||
}
|
||||
catch
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -63,15 +56,11 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
public static void Delete(string resource, string key)
|
||||
{
|
||||
var vault = new PasswordVault();
|
||||
try
|
||||
var credential = vault.FindAllByResource(resource).Where(x => x.UserName == key).FirstOrDefault();
|
||||
if (credential != null)
|
||||
{
|
||||
var credential = vault.Retrieve(resource, key);
|
||||
vault.Remove(credential);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// 不存在就忽略
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.Storage;
|
||||
using WinRT.Interop;
|
||||
|
||||
namespace BetterLyrics.WinUI3.Helper
|
||||
{
|
||||
public class PickerHelper
|
||||
{
|
||||
public static async Task<StorageFolder?> PickSingleFolderAsync<T>()
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<T>();
|
||||
if (window == null) return null;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FolderPicker();
|
||||
picker.FileTypeFilter.Add("*");
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var folder = await picker.PickSingleFolderAsync();
|
||||
|
||||
return folder;
|
||||
}
|
||||
|
||||
public static async Task<StorageFile?> PickSingleFileAsync<T>(string[] fileTypeFilter)
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<T>();
|
||||
if (window == null) return null;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FileOpenPicker();
|
||||
picker.FileTypeFilter.AddRange(fileTypeFilter);
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var file = await picker.PickSingleFileAsync();
|
||||
|
||||
return file;
|
||||
}
|
||||
|
||||
public static async Task<StorageFile?> PickSaveFileAsync<T>(IDictionary<string, IList<string>> fileTypeChoices)
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<T>();
|
||||
if (window == null) return null;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FileSavePicker();
|
||||
picker.FileTypeChoices.AddRange(fileTypeChoices);
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var file = await picker.PickSaveFileAsync();
|
||||
|
||||
return file;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,21 +5,26 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
{
|
||||
public static class PlayerIdMatcher
|
||||
{
|
||||
private static readonly List<string> _neteaseFamilyRegex =
|
||||
private static readonly List<string> neteaseFamilyRegex =
|
||||
[
|
||||
"cloudmusic.exe", //NetEaseCloudMusic
|
||||
"^17588BrandonWong\\.LyricEase_", //LyricEase
|
||||
"^48848aaaaaaccd\\.HyPlayer_" //HyPlayer
|
||||
];
|
||||
|
||||
public static bool IsNeteaseFamily(string player)
|
||||
public static bool IsNeteaseFamily(string id)
|
||||
{
|
||||
foreach (var regex in _neteaseFamilyRegex)
|
||||
foreach (var regex in neteaseFamilyRegex)
|
||||
{
|
||||
var isMatch = Regex.IsMatch(player, regex);
|
||||
var isMatch = Regex.IsMatch(id, regex);
|
||||
if (isMatch) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsLXMusic(string? id)
|
||||
{
|
||||
return id == Constants.PlayerID.LXMusic || id == Constants.PlayerID.LXMusicPortable;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,15 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
return default;
|
||||
}
|
||||
|
||||
public static IntPtr? GetWindowHandle(object? obj)
|
||||
{
|
||||
if (obj is FrameworkElement frameworkElement)
|
||||
{
|
||||
return frameworkElement.XamlRoot.ContentIslandEnvironment.AppWindowId.GetWindowHandle();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void OpenOrShowWindow<T>()
|
||||
{
|
||||
var window = _activeWindows.Find(w => w is T);
|
||||
@@ -104,6 +113,8 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
|
||||
if (typeof(T) == typeof(LyricsWindow))
|
||||
{
|
||||
_liveStatesService.InitLyricsWindowStatus();
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(castedWindow);
|
||||
_defaultWindowStyle.Add(hwnd, castedWindow.GetWindowStyle());
|
||||
_defaultExtendedWindowStyle.Add(hwnd, castedWindow.GetExtendedWindowStyle());
|
||||
@@ -111,7 +122,8 @@ namespace BetterLyrics.WinUI3.Helper
|
||||
var lyricsWindow = (LyricsWindow)window;
|
||||
lyricsWindow.ViewModel.InitShortcuts();
|
||||
lyricsWindow.ViewModel.InitFgWindowWatcher();
|
||||
lyricsWindow.ViewModel.RefreshLyricsWindowStatus();
|
||||
|
||||
_mediaSessionsService.InitPlaybackShortcuts();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -185,6 +185,7 @@ namespace BetterLyrics.WinUI3.Models
|
||||
DemoWindowBounds = this.DemoWindowBounds,
|
||||
MonitorBounds = this.MonitorBounds,
|
||||
DemoMonitorBounds = this.DemoMonitorBounds,
|
||||
DockPlacement = this.DockPlacement,
|
||||
LyricsStyleSettings = (LyricsStyleSettings)this.LyricsStyleSettings.Clone(),
|
||||
LyricsEffectSettings = (LyricsEffectSettings)this.LyricsEffectSettings.Clone(),
|
||||
LyricsBackgroundSettings = (LyricsBackgroundSettings)this.LyricsBackgroundSettings.Clone(),
|
||||
@@ -264,6 +265,7 @@ namespace BetterLyrics.WinUI3.Models
|
||||
{
|
||||
Name = _resourceService.GetLocalizedString("FullscreenMode"),
|
||||
IsBorderless = true,
|
||||
IsAlwaysOnTop = true,
|
||||
TitleBarArea = TitleBarArea.None,
|
||||
LyricsLayoutOrientation = LyricsLayoutOrientation.Vertical,
|
||||
LyricsStyleSettings = new LyricsStyleSettings
|
||||
|
||||
@@ -40,12 +40,24 @@ namespace BetterLyrics.WinUI3.Models.Settings
|
||||
return new LyricsBackgroundSettings
|
||||
{
|
||||
LyricsBackgroundTheme = this.LyricsBackgroundTheme,
|
||||
|
||||
IsPureColorOverlayEnabled = this.IsPureColorOverlayEnabled,
|
||||
PureColorOverlayOpacity = this.PureColorOverlayOpacity,
|
||||
|
||||
IsCoverOverlayEnabled = this.IsCoverOverlayEnabled,
|
||||
CoverOverlayBlurAmount = this.CoverOverlayBlurAmount,
|
||||
CoverOverlayOpacity = this.CoverOverlayOpacity,
|
||||
PureColorOverlayOpacity = this.PureColorOverlayOpacity,
|
||||
CoverOverlaySpeed = this.CoverOverlaySpeed,
|
||||
CoverAcrylicEffectAmount = this.CoverAcrylicEffectAmount,
|
||||
PaletteGeneratorType = this.PaletteGeneratorType
|
||||
|
||||
IsFluidOverlayEnabled = this.IsFluidOverlayEnabled,
|
||||
FluidOverlayOpacity = this.FluidOverlayOpacity,
|
||||
PaletteGeneratorType = this.PaletteGeneratorType,
|
||||
|
||||
IsSpectrumOverlayEnabled = this.IsSpectrumOverlayEnabled,
|
||||
|
||||
IsSnowFlakeOverlayEnabled = this.IsSnowFlakeOverlayEnabled,
|
||||
SnowFlakeOverlayAmount = this.SnowFlakeOverlayAmount,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,24 +61,42 @@ namespace BetterLyrics.WinUI3.Models.Settings
|
||||
return new LyricsEffectSettings(this.LyricsScrollTopDuration, this.LyricsScrollDuration, this.LyricsScrollBottomDuration, this.LyricsScrollEasingType)
|
||||
{
|
||||
LyricsBlurAmount = this.LyricsBlurAmount,
|
||||
|
||||
IsLyricsLineFadeEnabled = this.IsLyricsLineFadeEnabled,
|
||||
|
||||
IsLyricsGlowEffectEnabled = this.IsLyricsGlowEffectEnabled,
|
||||
LyricsGlowEffectScope = this.LyricsGlowEffectScope,
|
||||
LyricsGlowEffectAmount = this.LyricsGlowEffectAmount,
|
||||
|
||||
IsLyricsShadowEnabled = this.IsLyricsShadowEnabled,
|
||||
LyricsShadowScope = this.LyricsShadowScope,
|
||||
LyricsShadowAmount = this.LyricsShadowAmount,
|
||||
|
||||
OriginalLyricsHighlightScope = this.OriginalLyricsHighlightScope,
|
||||
PhoneticLyricsHighlightAmount = this.PhoneticLyricsHighlightAmount,
|
||||
OriginalLyricsHighlightAmount = this.OriginalLyricsHighlightAmount,
|
||||
TranslatedLyricsHighlightAmount = this.TranslatedLyricsHighlightAmount,
|
||||
|
||||
IsLyricsFloatAnimationEnabled = this.IsLyricsFloatAnimationEnabled,
|
||||
LyricsFloatAmount = this.LyricsFloatAmount,
|
||||
|
||||
LyricsScrollEasingType = this.LyricsScrollEasingType,
|
||||
LyricsScrollDuration = this.LyricsScrollDuration,
|
||||
LyricsScrollTopDuration = this.LyricsScrollTopDuration,
|
||||
LyricsScrollBottomDuration = this.LyricsScrollBottomDuration,
|
||||
LyricsScrollTopDelay = this.LyricsScrollTopDelay,
|
||||
LyricsScrollBottomDelay = this.LyricsScrollBottomDelay,
|
||||
|
||||
LyricsVerticalEdgeOpacity = this.LyricsVerticalEdgeOpacity,
|
||||
|
||||
IsFanLyricsEnabled = this.IsFanLyricsEnabled,
|
||||
FanLyricsAngle = this.FanLyricsAngle,
|
||||
|
||||
Is3DLyricsEnabled = this.Is3DLyricsEnabled,
|
||||
Lyrics3DXAngle = this.Lyrics3DXAngle,
|
||||
Lyrics3DYAngle = this.Lyrics3DYAngle,
|
||||
Lyrics3DZAngle = this.Lyrics3DZAngle,
|
||||
Lyrics3DDepth = this.Lyrics3DDepth,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ namespace BetterLyrics.WinUI3.Services.LiveStatesService
|
||||
public interface ILiveStatesService
|
||||
{
|
||||
LiveStates LiveStates { get; set; }
|
||||
void RefreshLyricsWindowStatus();
|
||||
void InitLyricsWindowStatus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ using BetterLyrics.WinUI3.Models;
|
||||
using BetterLyrics.WinUI3.Services.SettingsService;
|
||||
using BetterLyrics.WinUI3.ViewModels;
|
||||
using BetterLyrics.WinUI3.Views;
|
||||
using CommunityToolkit.Mvvm.Messaging;
|
||||
using CommunityToolkit.Mvvm.Messaging.Messages;
|
||||
using CommunityToolkit.WinUI.Controls;
|
||||
using System;
|
||||
using System.Linq;
|
||||
@@ -11,32 +13,75 @@ using Windows.Foundation;
|
||||
|
||||
namespace BetterLyrics.WinUI3.Services.LiveStatesService
|
||||
{
|
||||
public partial class LiveStatesService : BaseViewModel, ILiveStatesService
|
||||
public partial class LiveStatesService : BaseViewModel, ILiveStatesService,
|
||||
IRecipient<PropertyChangedMessage<LyricsWindowStatus>>
|
||||
{
|
||||
private readonly ISettingsService _settingsService;
|
||||
|
||||
public LiveStates LiveStates { get; set; } = new();
|
||||
public LiveStates LiveStates { get; set; } = new LiveStates();
|
||||
|
||||
public LiveStatesService(ISettingsService settingsService)
|
||||
{
|
||||
_settingsService = settingsService;
|
||||
LiveStates.PropertyChanged += LiveStates_PropertyChanged;
|
||||
LiveStates.PropertyChanging += LiveStates_PropertyChanging;
|
||||
InitLyricsWindowStatus();
|
||||
}
|
||||
|
||||
private void LiveStates_PropertyChanging(object? sender, System.ComponentModel.PropertyChangingEventArgs e)
|
||||
public void InitLyricsWindowStatus()
|
||||
{
|
||||
if (e.PropertyName == nameof(LiveStates.LyricsWindowStatus))
|
||||
var defaultLyricsWindowStatus = _settingsService.AppSettings.WindowBoundsRecords.FirstOrDefault(x => x.IsDefault);
|
||||
if (defaultLyricsWindowStatus == null)
|
||||
{
|
||||
LiveStates.LyricsWindowStatus.PropertyChanged -= LyricsWindowStatus_PropertyChanged;
|
||||
defaultLyricsWindowStatus = LyricsWindowStatusExtensions.StandardMode();
|
||||
defaultLyricsWindowStatus.IsDefault = true;
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(defaultLyricsWindowStatus);
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(LyricsWindowStatusExtensions.DesktopMode());
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(LyricsWindowStatusExtensions.DockedMode());
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(LyricsWindowStatusExtensions.NarrowMode());
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(LyricsWindowStatusExtensions.FullscreenMode());
|
||||
}
|
||||
LiveStates.LyricsWindowStatus = defaultLyricsWindowStatus;
|
||||
}
|
||||
|
||||
private async void RefreshLyricsWindowStatus()
|
||||
{
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = true;
|
||||
|
||||
LiveStates.LyricsWindowStatus.UpdateMonitorBounds();
|
||||
|
||||
WindowHelper.SetIsWorkArea<LyricsWindow>(LiveStates.LyricsWindowStatus.IsWorkArea);
|
||||
if (LiveStates.LyricsWindowStatus.IsWorkArea)
|
||||
{
|
||||
WindowHelper.UpdateWorkArea<LyricsWindow>();
|
||||
}
|
||||
await Task.Delay(300);
|
||||
|
||||
WindowHelper.SetIsShowInSwitchers<LyricsWindow>(LiveStates.LyricsWindowStatus.IsShownInSwitchers);
|
||||
WindowHelper.SetIsAlwaysOnTop<LyricsWindow>(LiveStates.LyricsWindowStatus.IsAlwaysOnTop);
|
||||
|
||||
WindowHelper.SetIsClickThrough<LyricsWindow>(LiveStates.LyricsWindowStatus.IsClickThrough);
|
||||
WindowHelper.SetIsBorderless<LyricsWindow>(LiveStates.LyricsWindowStatus.IsBorderless);
|
||||
|
||||
WindowHelper.SetLyricsWindowVisibilityByPlayingStatus(_dispatcherQueue);
|
||||
WindowHelper.SetTitleBarArea<LyricsWindow>(LiveStates.LyricsWindowStatus.TitleBarArea);
|
||||
|
||||
// 下述代码可以删除,但是为了避免给用户造成操作上的疑虑,暂时保留
|
||||
if (LiveStates.LyricsWindowStatus.IsWorkArea)
|
||||
{
|
||||
LiveStates.LyricsWindowStatus.WindowBounds = LiveStates.LyricsWindowStatus.GetWindowBoundsWhenWorkArea();
|
||||
}
|
||||
|
||||
WindowHelper.MoveAndResize<LyricsWindow>(LiveStates.LyricsWindowStatus.WindowBounds);
|
||||
LiveStates.LyricsWindowStatus.WindowX = LiveStates.LyricsWindowStatus.WindowBounds.X;
|
||||
LiveStates.LyricsWindowStatus.WindowY = LiveStates.LyricsWindowStatus.WindowBounds.Y;
|
||||
LiveStates.LyricsWindowStatus.WindowWidth = LiveStates.LyricsWindowStatus.WindowBounds.Width;
|
||||
LiveStates.LyricsWindowStatus.WindowHeight = LiveStates.LyricsWindowStatus.WindowBounds.Height;
|
||||
|
||||
LiveStates.LyricsWindowStatus.UpdateDemoWindowAndMonitorBounds();
|
||||
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = false;
|
||||
}
|
||||
|
||||
private async void LyricsWindowStatus_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
|
||||
{
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = true;
|
||||
|
||||
switch (e.PropertyName)
|
||||
{
|
||||
case nameof(LyricsWindowStatus.IsWorkArea):
|
||||
@@ -91,65 +136,19 @@ namespace BetterLyrics.WinUI3.Services.LiveStatesService
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = false;
|
||||
}
|
||||
|
||||
private void LiveStates_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
|
||||
public void Receive(PropertyChangedMessage<LyricsWindowStatus> message)
|
||||
{
|
||||
if (e.PropertyName == nameof(LiveStates.LyricsWindowStatus))
|
||||
if (message.Sender is LiveStates)
|
||||
{
|
||||
LiveStates.LyricsWindowStatus.PropertyChanged += LyricsWindowStatus_PropertyChanged;
|
||||
RefreshLyricsWindowStatus();
|
||||
if (message.PropertyName == nameof(LiveStates.LyricsWindowStatus))
|
||||
{
|
||||
message.OldValue.PropertyChanged -= LyricsWindowStatus_PropertyChanged;
|
||||
message.NewValue.PropertyChanged += LyricsWindowStatus_PropertyChanged;
|
||||
RefreshLyricsWindowStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitLyricsWindowStatus()
|
||||
{
|
||||
var defaultLyricsWindowStatus = _settingsService.AppSettings.WindowBoundsRecords.FirstOrDefault(x => x.IsDefault);
|
||||
if (defaultLyricsWindowStatus == null)
|
||||
{
|
||||
defaultLyricsWindowStatus = LyricsWindowStatusExtensions.StandardMode();
|
||||
defaultLyricsWindowStatus.IsDefault = true;
|
||||
_settingsService.AppSettings.WindowBoundsRecords.Add(defaultLyricsWindowStatus);
|
||||
}
|
||||
LiveStates.LyricsWindowStatus = defaultLyricsWindowStatus;
|
||||
}
|
||||
|
||||
public async void RefreshLyricsWindowStatus()
|
||||
{
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = true;
|
||||
|
||||
LiveStates.LyricsWindowStatus.UpdateMonitorBounds();
|
||||
|
||||
WindowHelper.SetIsWorkArea<LyricsWindow>(LiveStates.LyricsWindowStatus.IsWorkArea);
|
||||
await Task.Delay(300);
|
||||
|
||||
WindowHelper.SetIsShowInSwitchers<LyricsWindow>(LiveStates.LyricsWindowStatus.IsShownInSwitchers);
|
||||
WindowHelper.SetIsAlwaysOnTop<LyricsWindow>(LiveStates.LyricsWindowStatus.IsAlwaysOnTop);
|
||||
|
||||
WindowHelper.SetIsClickThrough<LyricsWindow>(LiveStates.LyricsWindowStatus.IsClickThrough);
|
||||
WindowHelper.SetIsBorderless<LyricsWindow>(LiveStates.LyricsWindowStatus.IsBorderless);
|
||||
|
||||
WindowHelper.SetLyricsWindowVisibilityByPlayingStatus(_dispatcherQueue);
|
||||
WindowHelper.SetTitleBarArea<LyricsWindow>(LiveStates.LyricsWindowStatus.TitleBarArea);
|
||||
|
||||
// 下述代码可以删除,但是为了避免给用户造成操作上的疑虑,暂时保留
|
||||
if (LiveStates.LyricsWindowStatus.IsWorkArea)
|
||||
{
|
||||
LiveStates.LyricsWindowStatus.WindowBounds = LiveStates.LyricsWindowStatus.GetWindowBoundsWhenWorkArea();
|
||||
}
|
||||
|
||||
WindowHelper.MoveAndResize<LyricsWindow>(LiveStates.LyricsWindowStatus.WindowBounds);
|
||||
LiveStates.LyricsWindowStatus.WindowX = LiveStates.LyricsWindowStatus.WindowBounds.X;
|
||||
LiveStates.LyricsWindowStatus.WindowY = LiveStates.LyricsWindowStatus.WindowBounds.Y;
|
||||
LiveStates.LyricsWindowStatus.WindowWidth = LiveStates.LyricsWindowStatus.WindowBounds.Width;
|
||||
LiveStates.LyricsWindowStatus.WindowHeight = LiveStates.LyricsWindowStatus.WindowBounds.Height;
|
||||
|
||||
LiveStates.LyricsWindowStatus.UpdateDemoWindowAndMonitorBounds();
|
||||
|
||||
LiveStates.IsLyricsWindowStatusRefreshing = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService
|
||||
void UpdateLyrics();
|
||||
void UpdateTranslations();
|
||||
|
||||
void InitPlaybackShortcuts();
|
||||
|
||||
bool IsPlaying { get; }
|
||||
SongInfo? SongInfo { get; }
|
||||
TimeSpan Position { get; }
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService
|
||||
UpdateLyrics();
|
||||
}
|
||||
|
||||
private void InitPlaybackShortcuts()
|
||||
public void InitPlaybackShortcuts()
|
||||
{
|
||||
UpdatePlayOrPauseSongShortcut();
|
||||
UpdatePreviousSongShortcut();
|
||||
@@ -306,7 +306,7 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService
|
||||
_logger.LogInformation("Media properties changed: Title: {Title}, Artist: {Artist}, Album: {Album}",
|
||||
mediaProperties?.Title, mediaProperties?.Artist, mediaProperties?.AlbumTitle);
|
||||
|
||||
if (sessionId == Constants.PlayerID.LXMusic)
|
||||
if (PlayerIdMatcher.IsLXMusic(sessionId))
|
||||
{
|
||||
StopSSE();
|
||||
}
|
||||
@@ -349,7 +349,7 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService
|
||||
_logger.LogInformation("Media properties changed: Title: {Title}, Artist: {Artist}, Album: {Album}",
|
||||
mediaProperties?.Title, mediaProperties?.Artist, mediaProperties?.AlbumTitle);
|
||||
|
||||
if (sessionId == Constants.PlayerID.LXMusic)
|
||||
if (PlayerIdMatcher.IsLXMusic(sessionId))
|
||||
{
|
||||
StartSSE();
|
||||
}
|
||||
@@ -358,7 +358,7 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService
|
||||
StopSSE();
|
||||
}
|
||||
|
||||
if (sessionId == Constants.PlayerID.LXMusic && _lxMusicAlbumArtBytes != null)
|
||||
if (PlayerIdMatcher.IsLXMusic(sessionId) && _lxMusicAlbumArtBytes != null)
|
||||
{
|
||||
_SMTCAlbumArtBuffer = _lxMusicAlbumArtBytes.AsBuffer();
|
||||
}
|
||||
|
||||
@@ -186,6 +186,9 @@
|
||||
<data name="ImportSettingsFailed" xml:space="preserve">
|
||||
<value>Settings file import failed, application settings remain unchanged</value>
|
||||
</data>
|
||||
<data name="ImportSettingsSuccess" xml:space="preserve">
|
||||
<value>Import successful</value>
|
||||
</data>
|
||||
<data name="Jyutping" xml:space="preserve">
|
||||
<value>Cantonese pinyin</value>
|
||||
</data>
|
||||
@@ -213,6 +216,9 @@
|
||||
<data name="LibreTranslateFailed" xml:space="preserve">
|
||||
<value>Requesting translation from LibreTranslate failed, please check the settings or the native LibreTranslate configuration</value>
|
||||
</data>
|
||||
<data name="LibreTranslateServerTextBox.PlaceholderText" xml:space="preserve">
|
||||
<value>e.g. http://localhost:5000</value>
|
||||
</data>
|
||||
<data name="LyricsLoading" xml:space="preserve">
|
||||
<value>Loading lyrics...</value>
|
||||
</data>
|
||||
@@ -318,6 +324,9 @@
|
||||
<data name="LyricsWindowSettingsControlSetDefault.Text" xml:space="preserve">
|
||||
<value>Set as default</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSettingsControlShare.Text" xml:space="preserve">
|
||||
<value>Export</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSwitchButtonToolTip.Content" xml:space="preserve">
|
||||
<value>Lyrics window switcher</value>
|
||||
</data>
|
||||
@@ -509,7 +518,7 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<value>If you like this project, please consider supporting it by donating. Your support will help keep the project alive and encourage further development.</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyrics.Header" xml:space="preserve">
|
||||
<value>3D lyrics</value>
|
||||
<value>[Experimental] Depth effect</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyricsDepth.Header" xml:space="preserve">
|
||||
<value>Depth</value>
|
||||
@@ -649,8 +658,8 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<data name="SettingsPageConfigName.Header" xml:space="preserve">
|
||||
<value>Configuration name</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromCurrent.Content" xml:space="preserve">
|
||||
<value>Create from the current lyrics window status</value>
|
||||
<data name="SettingsPageCreateFromCurrent.Text" xml:space="preserve">
|
||||
<value>Copy</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromTemplates.Content" xml:space="preserve">
|
||||
<value>Create from templates</value>
|
||||
@@ -805,6 +814,9 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<data name="SettingsPageHideWindow.Header" xml:space="preserve">
|
||||
<value>Automatically hide/show windows</value>
|
||||
</data>
|
||||
<data name="SettingsPageImport.Content" xml:space="preserve">
|
||||
<value>Import</value>
|
||||
</data>
|
||||
<data name="SettingsPageImportSettingsButton.Content" xml:space="preserve">
|
||||
<value>Import settings</value>
|
||||
</data>
|
||||
@@ -880,6 +892,9 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<data name="SettingsPageLXMusicServer.Text" xml:space="preserve">
|
||||
<value>LX Music Server</value>
|
||||
</data>
|
||||
<data name="SettingsPageLXMusicServerInput.PlaceholderText" xml:space="preserve">
|
||||
<value>e.g. http://127.0.0.1:23330</value>
|
||||
</data>
|
||||
<data name="SettingsPageLyricsAlignment.Header" xml:space="preserve">
|
||||
<value>Alignment</value>
|
||||
</data>
|
||||
@@ -1207,6 +1222,9 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<data name="SettingsPageSettingsManager.Header" xml:space="preserve">
|
||||
<value>Settings manager</value>
|
||||
</data>
|
||||
<data name="SettingsPageShareHub.Content" xml:space="preserve">
|
||||
<value>Browse online resources sharing hub</value>
|
||||
</data>
|
||||
<data name="SettingsPageShortcutRegFailInfo" xml:space="preserve">
|
||||
<value>This hotkey was not successfully registered</value>
|
||||
</data>
|
||||
@@ -1250,7 +1268,7 @@ If you encounter any problems, please go to the Settings page, About tab, and vi
|
||||
<value>Right</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpectrumLayer.Header" xml:space="preserve">
|
||||
<value>Spectrum layer</value>
|
||||
<value>[Experimental] Spectrum Layer</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpeed.Header" xml:space="preserve">
|
||||
<value>Motion rate</value>
|
||||
|
||||
@@ -186,6 +186,9 @@
|
||||
<data name="ImportSettingsFailed" xml:space="preserve">
|
||||
<value>設定ファイルのインポートに失敗し、アプリケーション設定は変更されません</value>
|
||||
</data>
|
||||
<data name="ImportSettingsSuccess" xml:space="preserve">
|
||||
<value>インポート成功</value>
|
||||
</data>
|
||||
<data name="Jyutping" xml:space="preserve">
|
||||
<value>広東語のピンイン</value>
|
||||
</data>
|
||||
@@ -213,6 +216,9 @@
|
||||
<data name="LibreTranslateFailed" xml:space="preserve">
|
||||
<value>リブレットランスレートからの翻訳のリクエストが失敗しました。設定またはネイティブリブレットランレート構成を確認してください</value>
|
||||
</data>
|
||||
<data name="LibreTranslateServerTextBox.PlaceholderText" xml:space="preserve">
|
||||
<value>例:http://localhost:5000</value>
|
||||
</data>
|
||||
<data name="LyricsLoading" xml:space="preserve">
|
||||
<value>歌詞の読み込み...</value>
|
||||
</data>
|
||||
@@ -318,6 +324,9 @@
|
||||
<data name="LyricsWindowSettingsControlSetDefault.Text" xml:space="preserve">
|
||||
<value>既定のブラウザーに設定する</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSettingsControlShare.Text" xml:space="preserve">
|
||||
<value>エクスポート</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSwitchButtonToolTip.Content" xml:space="preserve">
|
||||
<value>歌詞ウィンドウスイッチャー</value>
|
||||
</data>
|
||||
@@ -509,7 +518,7 @@
|
||||
<value>このプロジェクトが気に入っている場合は、寄付してサポートすることを検討してください。あなたのサポートは、プロジェクトを生かし続け、さらなる開発を促進するのに役立ちます。</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyrics.Header" xml:space="preserve">
|
||||
<value>3 D 歌詞</value>
|
||||
<value>[実験的] 奥行き効果</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyricsDepth.Header" xml:space="preserve">
|
||||
<value>深度</value>
|
||||
@@ -649,8 +658,8 @@
|
||||
<data name="SettingsPageConfigName.Header" xml:space="preserve">
|
||||
<value>設定名</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromCurrent.Content" xml:space="preserve">
|
||||
<value>現在の歌詞ウィンドウのステータスから作成</value>
|
||||
<data name="SettingsPageCreateFromCurrent.Text" xml:space="preserve">
|
||||
<value>コピー</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromTemplates.Content" xml:space="preserve">
|
||||
<value>テンプレートから作成</value>
|
||||
@@ -805,6 +814,9 @@
|
||||
<data name="SettingsPageHideWindow.Header" xml:space="preserve">
|
||||
<value>Windowsを自動的に非表示/表示します</value>
|
||||
</data>
|
||||
<data name="SettingsPageImport.Content" xml:space="preserve">
|
||||
<value>インポート</value>
|
||||
</data>
|
||||
<data name="SettingsPageImportSettingsButton.Content" xml:space="preserve">
|
||||
<value>設定をインポートします</value>
|
||||
</data>
|
||||
@@ -880,6 +892,9 @@
|
||||
<data name="SettingsPageLXMusicServer.Text" xml:space="preserve">
|
||||
<value>LX Music Server</value>
|
||||
</data>
|
||||
<data name="SettingsPageLXMusicServerInput.PlaceholderText" xml:space="preserve">
|
||||
<value>例)http://127.0.0.1: 23330</value>
|
||||
</data>
|
||||
<data name="SettingsPageLyricsAlignment.Header" xml:space="preserve">
|
||||
<value>アライメント</value>
|
||||
</data>
|
||||
@@ -1207,6 +1222,9 @@
|
||||
<data name="SettingsPageSettingsManager.Header" xml:space="preserve">
|
||||
<value>設定マネージャー</value>
|
||||
</data>
|
||||
<data name="SettingsPageShareHub.Content" xml:space="preserve">
|
||||
<value>オンラインリソース共有ハブを閲覧しましょう</value>
|
||||
</data>
|
||||
<data name="SettingsPageShortcutRegFailInfo" xml:space="preserve">
|
||||
<value>このホットキーは正常に登録されていません</value>
|
||||
</data>
|
||||
@@ -1250,7 +1268,7 @@
|
||||
<value>右</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpectrumLayer.Header" xml:space="preserve">
|
||||
<value>スペクトラムレイヤー</value>
|
||||
<value>[実験的] スペクトラムレイヤー</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpeed.Header" xml:space="preserve">
|
||||
<value>モーション</value>
|
||||
|
||||
@@ -186,6 +186,9 @@
|
||||
<data name="ImportSettingsFailed" xml:space="preserve">
|
||||
<value>설정 파일 가져 오기 실패, 응용 프로그램 설정은 변경되지 않았습니다</value>
|
||||
</data>
|
||||
<data name="ImportSettingsSuccess" xml:space="preserve">
|
||||
<value>가져 오기 성공</value>
|
||||
</data>
|
||||
<data name="Jyutping" xml:space="preserve">
|
||||
<value>광둥어 병음</value>
|
||||
</data>
|
||||
@@ -213,6 +216,9 @@
|
||||
<data name="LibreTranslateFailed" xml:space="preserve">
|
||||
<value>LibreTranslate에서 번역 요청 실패, 설정 또는 기본 LibreTranslate 구성을 확인하십시오.</value>
|
||||
</data>
|
||||
<data name="LibreTranslateServerTextBox.PlaceholderText" xml:space="preserve">
|
||||
<value>예: http://localhost:5000</value>
|
||||
</data>
|
||||
<data name="LyricsLoading" xml:space="preserve">
|
||||
<value>가사로드 ...</value>
|
||||
</data>
|
||||
@@ -318,6 +324,9 @@
|
||||
<data name="LyricsWindowSettingsControlSetDefault.Text" xml:space="preserve">
|
||||
<value>기본 값으로 설정</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSettingsControlShare.Text" xml:space="preserve">
|
||||
<value>내보내기</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSwitchButtonToolTip.Content" xml:space="preserve">
|
||||
<value>가사 창 전환기</value>
|
||||
</data>
|
||||
@@ -509,7 +518,7 @@
|
||||
<value>이 프로젝트가 마음에 들면 기부하여 지원을 고려하십시오. 귀하의 지원은 프로젝트를 계속 유지하고 추가 개발을 장려하는 데 도움이 될 것입니다.</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyrics.Header" xml:space="preserve">
|
||||
<value>3D 가사</value>
|
||||
<value>[실험] 깊이 효과</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyricsDepth.Header" xml:space="preserve">
|
||||
<value>심도</value>
|
||||
@@ -649,8 +658,8 @@
|
||||
<data name="SettingsPageConfigName.Header" xml:space="preserve">
|
||||
<value>환경 설정</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromCurrent.Content" xml:space="preserve">
|
||||
<value>현재 가사 창 상태에서 만들기</value>
|
||||
<data name="SettingsPageCreateFromCurrent.Text" xml:space="preserve">
|
||||
<value>접수</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromTemplates.Content" xml:space="preserve">
|
||||
<value>템플릿에서 만들기</value>
|
||||
@@ -805,6 +814,9 @@
|
||||
<data name="SettingsPageHideWindow.Header" xml:space="preserve">
|
||||
<value>Windows를 자동으로 숨기고 표시합니다</value>
|
||||
</data>
|
||||
<data name="SettingsPageImport.Content" xml:space="preserve">
|
||||
<value>가져오기</value>
|
||||
</data>
|
||||
<data name="SettingsPageImportSettingsButton.Content" xml:space="preserve">
|
||||
<value>가져 오기 설정</value>
|
||||
</data>
|
||||
@@ -880,6 +892,9 @@
|
||||
<data name="SettingsPageLXMusicServer.Text" xml:space="preserve">
|
||||
<value>LX 음악 서버</value>
|
||||
</data>
|
||||
<data name="SettingsPageLXMusicServerInput.PlaceholderText" xml:space="preserve">
|
||||
<value>예: http://127.0.0.1: 23330</value>
|
||||
</data>
|
||||
<data name="SettingsPageLyricsAlignment.Header" xml:space="preserve">
|
||||
<value>조정</value>
|
||||
</data>
|
||||
@@ -1207,6 +1222,9 @@
|
||||
<data name="SettingsPageSettingsManager.Header" xml:space="preserve">
|
||||
<value>설정 관리자</value>
|
||||
</data>
|
||||
<data name="SettingsPageShareHub.Content" xml:space="preserve">
|
||||
<value>온라인 리소스 공유 허브를 둘러보세요</value>
|
||||
</data>
|
||||
<data name="SettingsPageShortcutRegFailInfo" xml:space="preserve">
|
||||
<value>이 핫키는 성공적으로 등록되지 않았습니다</value>
|
||||
</data>
|
||||
@@ -1250,7 +1268,7 @@
|
||||
<value>오른쪽</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpectrumLayer.Header" xml:space="preserve">
|
||||
<value>스펙트럼 레이어</value>
|
||||
<value>[실험] 스펙트럼 레이어</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpeed.Header" xml:space="preserve">
|
||||
<value>모션</value>
|
||||
|
||||
@@ -186,6 +186,9 @@
|
||||
<data name="ImportSettingsFailed" xml:space="preserve">
|
||||
<value>设置文件导入失败,应用程序设置保持不变</value>
|
||||
</data>
|
||||
<data name="ImportSettingsSuccess" xml:space="preserve">
|
||||
<value>导入成功</value>
|
||||
</data>
|
||||
<data name="Jyutping" xml:space="preserve">
|
||||
<value>粤语拼音</value>
|
||||
</data>
|
||||
@@ -213,6 +216,9 @@
|
||||
<data name="LibreTranslateFailed" xml:space="preserve">
|
||||
<value>向 LibreTranslate 请求翻译失败,请检查设置或本机 LibreTranslate 配置</value>
|
||||
</data>
|
||||
<data name="LibreTranslateServerTextBox.PlaceholderText" xml:space="preserve">
|
||||
<value>例如 http://localhost:5000</value>
|
||||
</data>
|
||||
<data name="LyricsLoading" xml:space="preserve">
|
||||
<value>加载歌词中...</value>
|
||||
</data>
|
||||
@@ -318,6 +324,9 @@
|
||||
<data name="LyricsWindowSettingsControlSetDefault.Text" xml:space="preserve">
|
||||
<value>设为默认</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSettingsControlShare.Text" xml:space="preserve">
|
||||
<value>导出</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSwitchButtonToolTip.Content" xml:space="preserve">
|
||||
<value>歌词窗口切换器</value>
|
||||
</data>
|
||||
@@ -509,7 +518,7 @@
|
||||
<value>如果您喜欢这个项目,请考虑通过捐赠来支持它。您的支持将有助于保持项目的生命并鼓励进一步的发展。</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyrics.Header" xml:space="preserve">
|
||||
<value>3D 歌词</value>
|
||||
<value>[实验性] 纵深效果</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyricsDepth.Header" xml:space="preserve">
|
||||
<value>深度</value>
|
||||
@@ -649,8 +658,8 @@
|
||||
<data name="SettingsPageConfigName.Header" xml:space="preserve">
|
||||
<value>配置名称</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromCurrent.Content" xml:space="preserve">
|
||||
<value>从当前歌词窗口状态创建</value>
|
||||
<data name="SettingsPageCreateFromCurrent.Text" xml:space="preserve">
|
||||
<value>拷贝</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromTemplates.Content" xml:space="preserve">
|
||||
<value>从模板创建</value>
|
||||
@@ -805,6 +814,9 @@
|
||||
<data name="SettingsPageHideWindow.Header" xml:space="preserve">
|
||||
<value>自动隐藏/显示窗口</value>
|
||||
</data>
|
||||
<data name="SettingsPageImport.Content" xml:space="preserve">
|
||||
<value>导入</value>
|
||||
</data>
|
||||
<data name="SettingsPageImportSettingsButton.Content" xml:space="preserve">
|
||||
<value>导入设置</value>
|
||||
</data>
|
||||
@@ -880,6 +892,9 @@
|
||||
<data name="SettingsPageLXMusicServer.Text" xml:space="preserve">
|
||||
<value>LX 音乐服务器</value>
|
||||
</data>
|
||||
<data name="SettingsPageLXMusicServerInput.PlaceholderText" xml:space="preserve">
|
||||
<value>例如 http://127.0.0.1: 23330</value>
|
||||
</data>
|
||||
<data name="SettingsPageLyricsAlignment.Header" xml:space="preserve">
|
||||
<value>对齐方式</value>
|
||||
</data>
|
||||
@@ -1207,6 +1222,9 @@
|
||||
<data name="SettingsPageSettingsManager.Header" xml:space="preserve">
|
||||
<value>设置管理器</value>
|
||||
</data>
|
||||
<data name="SettingsPageShareHub.Content" xml:space="preserve">
|
||||
<value>浏览在线资源共享中心</value>
|
||||
</data>
|
||||
<data name="SettingsPageShortcutRegFailInfo" xml:space="preserve">
|
||||
<value>该热键未成功注册</value>
|
||||
</data>
|
||||
@@ -1250,7 +1268,7 @@
|
||||
<value>靠右</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpectrumLayer.Header" xml:space="preserve">
|
||||
<value>频谱层</value>
|
||||
<value>[实验性] 频谱层</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpeed.Header" xml:space="preserve">
|
||||
<value>运动速率</value>
|
||||
|
||||
@@ -186,6 +186,9 @@
|
||||
<data name="ImportSettingsFailed" xml:space="preserve">
|
||||
<value>設置文件導入失敗,應用程序設置保持不變</value>
|
||||
</data>
|
||||
<data name="ImportSettingsSuccess" xml:space="preserve">
|
||||
<value>匯入成功</value>
|
||||
</data>
|
||||
<data name="Jyutping" xml:space="preserve">
|
||||
<value>粵語拼音</value>
|
||||
</data>
|
||||
@@ -213,6 +216,9 @@
|
||||
<data name="LibreTranslateFailed" xml:space="preserve">
|
||||
<value>向 LibreTranslate 請求翻譯失敗,請檢查設置或本機 LibreTranslate 配置</value>
|
||||
</data>
|
||||
<data name="LibreTranslateServerTextBox.PlaceholderText" xml:space="preserve">
|
||||
<value>例如 http://localhost:5000</value>
|
||||
</data>
|
||||
<data name="LyricsLoading" xml:space="preserve">
|
||||
<value>載入歌詞中...</value>
|
||||
</data>
|
||||
@@ -318,6 +324,9 @@
|
||||
<data name="LyricsWindowSettingsControlSetDefault.Text" xml:space="preserve">
|
||||
<value>設為預設</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSettingsControlShare.Text" xml:space="preserve">
|
||||
<value>匯出</value>
|
||||
</data>
|
||||
<data name="LyricsWindowSwitchButtonToolTip.Content" xml:space="preserve">
|
||||
<value>歌詞視窗切換器</value>
|
||||
</data>
|
||||
@@ -509,7 +518,7 @@
|
||||
<value>如果您喜歡這個項目,請考慮通過捐贈來支持它。您的支持將有助於保持項目的生命並鼓勵進一步的發展。</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyrics.Header" xml:space="preserve">
|
||||
<value>3D 歌詞</value>
|
||||
<value>[實驗性] 縱深效果</value>
|
||||
</data>
|
||||
<data name="SettingsPage3DLyricsDepth.Header" xml:space="preserve">
|
||||
<value>深度</value>
|
||||
@@ -649,8 +658,8 @@
|
||||
<data name="SettingsPageConfigName.Header" xml:space="preserve">
|
||||
<value>配置名稱</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromCurrent.Content" xml:space="preserve">
|
||||
<value>從目前的歌詞視窗狀態建立</value>
|
||||
<data name="SettingsPageCreateFromCurrent.Text" xml:space="preserve">
|
||||
<value>複製</value>
|
||||
</data>
|
||||
<data name="SettingsPageCreateFromTemplates.Content" xml:space="preserve">
|
||||
<value>從範本建立</value>
|
||||
@@ -805,6 +814,9 @@
|
||||
<data name="SettingsPageHideWindow.Header" xml:space="preserve">
|
||||
<value>自動隱藏/顯示窗口</value>
|
||||
</data>
|
||||
<data name="SettingsPageImport.Content" xml:space="preserve">
|
||||
<value>匯入</value>
|
||||
</data>
|
||||
<data name="SettingsPageImportSettingsButton.Content" xml:space="preserve">
|
||||
<value>導入設置</value>
|
||||
</data>
|
||||
@@ -880,6 +892,9 @@
|
||||
<data name="SettingsPageLXMusicServer.Text" xml:space="preserve">
|
||||
<value>LX 音樂服務器</value>
|
||||
</data>
|
||||
<data name="SettingsPageLXMusicServerInput.PlaceholderText" xml:space="preserve">
|
||||
<value>例如 http://127.0.0.1: 23330</value>
|
||||
</data>
|
||||
<data name="SettingsPageLyricsAlignment.Header" xml:space="preserve">
|
||||
<value>對齊方式</value>
|
||||
</data>
|
||||
@@ -1207,6 +1222,9 @@
|
||||
<data name="SettingsPageSettingsManager.Header" xml:space="preserve">
|
||||
<value>設置管理器</value>
|
||||
</data>
|
||||
<data name="SettingsPageShareHub.Content" xml:space="preserve">
|
||||
<value>瀏覽線上資源分享中心</value>
|
||||
</data>
|
||||
<data name="SettingsPageShortcutRegFailInfo" xml:space="preserve">
|
||||
<value>該熱鍵未成功註冊</value>
|
||||
</data>
|
||||
@@ -1250,7 +1268,7 @@
|
||||
<value>靠右</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpectrumLayer.Header" xml:space="preserve">
|
||||
<value>光譜層</value>
|
||||
<value>[實驗性] 頻譜層</value>
|
||||
</data>
|
||||
<data name="SettingsPageSpeed.Header" xml:space="preserve">
|
||||
<value>動作速率</value>
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
using BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Helper.BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Models.Settings;
|
||||
using BetterLyrics.WinUI3.Services.MediaSessionsService;
|
||||
using BetterLyrics.WinUI3.Services.ResourceService;
|
||||
using BetterLyrics.WinUI3.Services.SettingsService;
|
||||
using BetterLyrics.WinUI3.Views;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BetterLyrics.WinUI3.ViewModels
|
||||
{
|
||||
public partial class AboutControlViewModel : BaseViewModel
|
||||
{
|
||||
private readonly ISettingsService _settingsService;
|
||||
private readonly IResourceService _resourceService;
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedRecipients]
|
||||
public partial bool IsDebugOverlayEnabled { get; set; } = false;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial AppSettings AppSettings { get; set; }
|
||||
|
||||
public AboutControlViewModel(ISettingsService settingsService, IResourceService resourceService)
|
||||
{
|
||||
_settingsService = settingsService;
|
||||
_resourceService = resourceService;
|
||||
|
||||
AppSettings = _settingsService.AppSettings;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task LaunchProjectGitHubPageAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchUriAsync(new Uri(Constants.Link.GitHubUrl));
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private static async Task OpenCacheFolderAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchFolderPathAsync(PathHelper.CacheFolder);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private static async Task OpenSettingsFolderAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchFolderPathAsync(PathHelper.LocalFolder);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task ImportSettingsAsync()
|
||||
{
|
||||
var file = await PickerHelper.PickSingleFileAsync<SettingsWindow>([".json"]);
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
var succeed = _settingsService.ImportSettings(file.Path);
|
||||
if (succeed)
|
||||
{
|
||||
WindowHelper.RestartApp();
|
||||
}
|
||||
else
|
||||
{
|
||||
DevWinUI.Growl.Error(_resourceService.GetLocalizedString("ImportSettingsFailed") ?? "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task ExportSettingsAsync()
|
||||
{
|
||||
var folder = await PickerHelper.PickSingleFolderAsync<SettingsWindow>();
|
||||
|
||||
if (folder != null)
|
||||
{
|
||||
_settingsService.ExportSettings(folder.Path);
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ExportSettingsSuccess") ?? "");
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void ClearCacheFiles()
|
||||
{
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LogDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.AmllTtmlDbLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.KugouLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LrcLibLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.NeteaseLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.QQLyricsCacheDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.TranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.KugouTranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.NeteaseTranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.QQTranslationCacheDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.iTunesAlbumArtCacheDirectory);
|
||||
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ActionCompleted"));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -36,9 +36,9 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
|
||||
|
||||
public void Receive(PropertyChangedMessage<bool> message)
|
||||
{
|
||||
if (message.Sender is SettingsPageViewModel)
|
||||
if (message.Sender is AboutControlViewModel)
|
||||
{
|
||||
if (message.PropertyName == nameof(SettingsPageViewModel.IsDebugOverlayEnabled))
|
||||
if (message.PropertyName == nameof(AboutControlViewModel.IsDebugOverlayEnabled))
|
||||
{
|
||||
_isDebugOverlayEnabled = message.NewValue;
|
||||
_isDebugOverlayEnabledChanged = true;
|
||||
|
||||
@@ -229,7 +229,6 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
|
||||
{
|
||||
_albumArtSize = _liveStatesService.LiveStates.LyricsWindowStatus.AlbumArtLayoutSettings.AlbumArtSize;
|
||||
}
|
||||
//_albumArtYTransition.StartTransition((_canvasHeight - _albumArtSize * 1.05 - _songInfoHeight) / 2.0, jumpTo);
|
||||
_albumArtYTransition.StartTransition((_canvasHeight - _albumArtSize - _songInfoHeight) / 2.0, jumpTo);
|
||||
_titleYTransition.StartTransition(_albumArtYTransition.TargetValue + _albumArtSize * 1.05, jumpTo);
|
||||
_lyricsYTransition.StartTransition(0, jumpTo);
|
||||
@@ -289,7 +288,6 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
|
||||
_titleYTransition.StartTransition(_topMargin, jumpTo);
|
||||
_lyricsOpacityTransition.StartTransition(1f, jumpTo);
|
||||
_albumArtOpacityTransition.StartTransition(1f, jumpTo);
|
||||
//_lyricsYTransition.StartTransition(_albumArtSize, jumpTo);
|
||||
_lyricsYTransition.StartTransition(_topMargin, jumpTo);
|
||||
break;
|
||||
default:
|
||||
@@ -401,8 +399,7 @@ namespace BetterLyrics.WinUI3.ViewModels.LyricsRendererViewModel
|
||||
|
||||
if (_isDeviceChanged || _isCanvasHeightChanged || _isCanvasWidthChanged || _lyricsXTransition.IsTransitioning)
|
||||
{
|
||||
_maxLyricsWidth = _canvasWidth - _lyricsXTransition.Value - _rightMargin;
|
||||
_maxLyricsWidth = Math.Max(_maxLyricsWidth, 0);
|
||||
_maxLyricsWidth = Math.Max(_canvasWidth - _lyricsXTransition.Value - _rightMargin, 0);
|
||||
_isLayoutChanged = true;
|
||||
_isLyrics3DMatrixChanged = true;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Models;
|
||||
using BetterLyrics.WinUI3.Models.Settings;
|
||||
using BetterLyrics.WinUI3.Serialization;
|
||||
using BetterLyrics.WinUI3.Services.LiveStatesService;
|
||||
using BetterLyrics.WinUI3.Services.ResourceService;
|
||||
using BetterLyrics.WinUI3.Services.SettingsService;
|
||||
using BetterLyrics.WinUI3.Views;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
@@ -10,6 +12,7 @@ using Microsoft.UI.Xaml.Controls;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -21,6 +24,7 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
{
|
||||
private readonly ISettingsService _settingsService;
|
||||
private readonly ILiveStatesService _liveStatesService;
|
||||
private readonly IResourceService _resourceService;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial LiveStates LiveStates { get; set; }
|
||||
@@ -34,29 +38,22 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
[ObservableProperty]
|
||||
public partial ObservableCollection<string> MonitorDeviceNames { get; set; }
|
||||
|
||||
public LyricsWindowSettingsControlViewModel(ISettingsService settingsService, ILiveStatesService liveStatesService)
|
||||
public LyricsWindowSettingsControlViewModel(ISettingsService settingsService, ILiveStatesService liveStatesService, IResourceService resourceService)
|
||||
{
|
||||
_settingsService = settingsService;
|
||||
_liveStatesService = liveStatesService;
|
||||
_resourceService = resourceService;
|
||||
|
||||
AppSettings = _settingsService.AppSettings;
|
||||
AppSettings.WindowBoundsRecords.CollectionChanged += WindowBoundsRecords_CollectionChanged;
|
||||
LiveStates = _liveStatesService.LiveStates;
|
||||
MonitorDeviceNames = [.. MonitorHelper.GetAllMonitorDeviceNames()];
|
||||
}
|
||||
|
||||
private void WindowBoundsRecords_CollectionChanged(object? sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
if (!AppSettings.WindowBoundsRecords.Any(x => x == LiveStates.LyricsWindowStatus))
|
||||
{
|
||||
LiveStates.LyricsWindowStatus = AppSettings.WindowBoundsRecords.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void RefreshMonitorDeviceNames()
|
||||
{
|
||||
MonitorDeviceNames = [.. MonitorHelper.GetAllMonitorDeviceNames()];
|
||||
LiveStates.LyricsWindowStatus.MonitorDeviceName = MonitorDeviceNames.FirstOrDefault() ?? "";
|
||||
LiveStates.LyricsWindowStatus?.MonitorDeviceName = MonitorDeviceNames.FirstOrDefault() ?? "";
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
@@ -88,13 +85,5 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
{
|
||||
AppSettings.WindowBoundsRecords.Add(LyricsWindowStatusExtensions.NarrowMode());
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void CopyLyricsWindowStatus()
|
||||
{
|
||||
var data = (LyricsWindowStatus)LiveStates.LyricsWindowStatus.Clone();
|
||||
data.IsDefault = false;
|
||||
AppSettings.WindowBoundsRecords.Add(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,11 +189,6 @@ namespace BetterLyrics.WinUI3
|
||||
}
|
||||
}
|
||||
|
||||
public void RefreshLyricsWindowStatus()
|
||||
{
|
||||
_liveStatesService.RefreshLyricsWindowStatus();
|
||||
}
|
||||
|
||||
public void Receive(PropertyChangedMessage<List<string>> message)
|
||||
{
|
||||
if (message.Sender is GeneralSettings)
|
||||
|
||||
@@ -38,16 +38,7 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
[RelayCommand]
|
||||
private async Task SelectAndAddFolderAsync(UIElement sender)
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<SettingsWindow>();
|
||||
if (window == null) return;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FolderPicker();
|
||||
picker.FileTypeFilter.Add("*");
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var folder = await picker.PickSingleFolderAsync();
|
||||
var folder = await PickerHelper.PickSingleFolderAsync<SettingsWindow>();
|
||||
|
||||
if (folder != null)
|
||||
{
|
||||
|
||||
@@ -485,16 +485,10 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
[RelayCommand]
|
||||
private async Task CreatePlaylistAsync()
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<MusicGalleryWindow>();
|
||||
if (window == null) return;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FileSavePicker();
|
||||
picker.FileTypeChoices.Add("M3U", new List<string>() { ".m3u" });
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var file = await picker.PickSaveFileAsync();
|
||||
var file = await PickerHelper.PickSaveFileAsync<MusicGalleryWindow>(new Dictionary<string, IList<string>>()
|
||||
{
|
||||
{ "M3U", [".m3u"] }
|
||||
});
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
@@ -506,16 +500,7 @@ namespace BetterLyrics.WinUI3.ViewModels
|
||||
[RelayCommand]
|
||||
private async Task ImportPlaylistAsync()
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<MusicGalleryWindow>();
|
||||
if (window == null) return;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FileOpenPicker();
|
||||
picker.FileTypeFilter.Add(".m3u");
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var file = await picker.PickSingleFileAsync();
|
||||
var file = await PickerHelper.PickSingleFileAsync<MusicGalleryWindow>([".m3u"]);
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
|
||||
@@ -1,155 +1,24 @@
|
||||
// 2025/6/23 by Zhe Fang
|
||||
|
||||
using BetterLyrics.WinUI3.Enums;
|
||||
using BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Helper.BetterLyrics.WinUI3.Helper;
|
||||
using BetterLyrics.WinUI3.Models;
|
||||
using BetterLyrics.WinUI3.Models.Settings;
|
||||
using BetterLyrics.WinUI3.Services;
|
||||
using BetterLyrics.WinUI3.Services.LastFMService;
|
||||
using BetterLyrics.WinUI3.Services.LibWatcherService;
|
||||
using BetterLyrics.WinUI3.Services.MediaSessionsService;
|
||||
using BetterLyrics.WinUI3.Services.ResourceService;
|
||||
using BetterLyrics.WinUI3.Services.SettingsService;
|
||||
using BetterLyrics.WinUI3.Services.TranslateService;
|
||||
using BetterLyrics.WinUI3.Views;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using CommunityToolkit.WinUI;
|
||||
using Microsoft.UI.Dispatching;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.ApplicationModel;
|
||||
using Windows.Services.Store;
|
||||
using Windows.Storage;
|
||||
using WinRT.Interop;
|
||||
|
||||
namespace BetterLyrics.WinUI3.ViewModels
|
||||
{
|
||||
public partial class SettingsPageViewModel : BaseViewModel
|
||||
{
|
||||
private readonly ISettingsService _settingsService;
|
||||
private readonly IMediaSessionsService _mediaSessionsService;
|
||||
private readonly IResourceService _resourceService;
|
||||
|
||||
public string Version { get; set; } = MetadataHelper.AppVersion;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial AppSettings AppSettings { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedRecipients]
|
||||
public partial bool IsDebugOverlayEnabled { get; set; } = false;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial object NavViewSelectedItemTag { get; set; } = "App";
|
||||
|
||||
public SettingsPageViewModel(ISettingsService settingsService, IMediaSessionsService mediaSessionsService, IResourceService resourceService)
|
||||
{
|
||||
_settingsService = settingsService;
|
||||
_mediaSessionsService = mediaSessionsService;
|
||||
_resourceService = resourceService;
|
||||
AppSettings = _settingsService.AppSettings;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task LaunchProjectGitHubPageAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchUriAsync(new Uri(Constants.Link.GitHubUrl));
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private static async Task OpenCacheFolderAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchFolderPathAsync(PathHelper.CacheFolder);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private static async Task OpenSettingsFolderAsync()
|
||||
{
|
||||
await Windows.System.Launcher.LaunchFolderPathAsync(PathHelper.LocalFolder);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private static void RestartApp()
|
||||
{
|
||||
WindowHelper.RestartApp();
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task ImportSettingsAsync()
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<SettingsWindow>();
|
||||
if (window == null) return;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FileOpenPicker();
|
||||
picker.FileTypeFilter.Add(".json");
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var file = await picker.PickSingleFileAsync();
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
var succeed = _settingsService.ImportSettings(file.Path);
|
||||
if (succeed)
|
||||
{
|
||||
WindowHelper.RestartApp();
|
||||
}
|
||||
else
|
||||
{
|
||||
DevWinUI.Growl.Error(_resourceService.GetLocalizedString("ImportSettingsFailed") ?? "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task ExportSettingsAsync()
|
||||
{
|
||||
var window = WindowHelper.GetWindowByWindowType<SettingsWindow>();
|
||||
if (window == null) return;
|
||||
|
||||
var picker = new Windows.Storage.Pickers.FolderPicker();
|
||||
picker.FileTypeFilter.Add("*");
|
||||
|
||||
var hwnd = WindowNative.GetWindowHandle(window);
|
||||
InitializeWithWindow.Initialize(picker, hwnd);
|
||||
|
||||
var folder = await picker.PickSingleFolderAsync();
|
||||
|
||||
if (folder != null)
|
||||
{
|
||||
_settingsService.ExportSettings(folder.Path);
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ExportSettingsSuccess") ?? "");
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void ClearCacheFiles()
|
||||
{
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LogDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.AmllTtmlDbLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.KugouLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.LrcLibLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.NeteaseLyricsCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.QQLyricsCacheDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.TranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.KugouTranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.NeteaseTranslationCacheDirectory);
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.QQTranslationCacheDirectory);
|
||||
|
||||
DirectoryHelper.DeleteAllFiles(PathHelper.iTunesAlbumArtCacheDirectory);
|
||||
|
||||
DevWinUI.Growl.Success(_resourceService.GetLocalizedString("ActionCompleted"));
|
||||
}
|
||||
public SettingsPageViewModel() { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,187 +88,7 @@
|
||||
|
||||
<!-- About -->
|
||||
<controls:Case Value="About">
|
||||
<ScrollViewer Style="{StaticResource SettingsScrollViewerStyle}">
|
||||
<Grid Style="{StaticResource SettingsGridStyle}">
|
||||
<StackPanel Spacing="{StaticResource SettingsCardSpacing}">
|
||||
|
||||
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" />
|
||||
|
||||
<dev:SettingsExpander HeaderIcon="{ui:BitmapIcon Source=ms-appx:///Assets/Logo.png}" IsExpanded="True">
|
||||
<dev:SettingsExpander.Header>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBlock Text="BetterLyrics" />
|
||||
</StackPanel>
|
||||
</dev:SettingsExpander.Header>
|
||||
<dev:SettingsExpander.Description>
|
||||
<StackPanel
|
||||
Margin="0,2,0,0"
|
||||
Orientation="Horizontal"
|
||||
Spacing="2">
|
||||
<TextBlock Text="©" />
|
||||
<HyperlinkButton
|
||||
Margin="0,-1,0,0"
|
||||
Content="Zhe Fang"
|
||||
NavigateUri="https://github.com/jayfunc" />
|
||||
<TextBlock Text="2025" />
|
||||
</StackPanel>
|
||||
</dev:SettingsExpander.Description>
|
||||
<RichTextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
||||
<Paragraph>
|
||||
<Run x:Uid="SettingsPageVersion" />
|
||||
<Run Text="{x:Bind ViewModel.Version, Mode=OneWay}" />
|
||||
</Paragraph>
|
||||
</RichTextBlock>
|
||||
<dev:SettingsExpander.Items>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageInstructions" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="GitHub" NavigateUri="{x:Bind const:Link.GitHubUrl}" />
|
||||
<HyperlinkButton Content="Wiki" NavigateUri="{x:Bind const:Link.WikiUrl}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageFeedback" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton x:Uid="SettingsPageQQGroup" NavigateUri="{x:Bind const:Link.QQGroupUrl}" />
|
||||
<HyperlinkButton x:Uid="SettingsPageDiscord" NavigateUri="{x:Bind const:Link.DiscordUrl}" />
|
||||
<HyperlinkButton x:Uid="SettingsPageTelegram" NavigateUri="{x:Bind const:Link.TelegramUrl}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageDonation" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="Buy Me a Coffee" NavigateUri="https://buymeacoffee.com/founchoo" />
|
||||
<HyperlinkButton Content="PayPal" NavigateUri="https://paypal.me/zhefangpay" />
|
||||
<Button
|
||||
Content="支付宝"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Style="{StaticResource GhostButtonStyle}">
|
||||
<Button.Flyout>
|
||||
<Flyout>
|
||||
<Flyout.FlyoutPresenterStyle>
|
||||
<Style TargetType="FlyoutPresenter">
|
||||
<Setter Property="CornerRadius" Value="12" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
</Style>
|
||||
</Flyout.FlyoutPresenterStyle>
|
||||
<Image Height="300" Source="/Assets/Alipay.jpg" />
|
||||
</Flyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
<Button
|
||||
Content="微信"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Style="{StaticResource GhostButtonStyle}">
|
||||
<Button.Flyout>
|
||||
<Flyout>
|
||||
<Flyout.FlyoutPresenterStyle>
|
||||
<Style TargetType="FlyoutPresenter">
|
||||
<Setter Property="CornerRadius" Value="12" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
</Style>
|
||||
</Flyout.FlyoutPresenterStyle>
|
||||
<Image Height="300" Source="/Assets/WeChatReward.png" />
|
||||
</Flyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="*" />
|
||||
<TextBlock
|
||||
x:Uid="SetingsPageThanks"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock x:Uid="SetingsPageContributors" />
|
||||
<StackPanel Margin="-12,0,0,0" Orientation="Horizontal">
|
||||
<HyperlinkButton Content="jayfunc" NavigateUri="https://github.com/jayfunc" />
|
||||
<HyperlinkButton Content="Raspberry-Monster" NavigateUri="https://github.com/Raspberry-Monster" />
|
||||
<HyperlinkButton Content="ZHider" NavigateUri="https://github.com/ZHider" />
|
||||
<HyperlinkButton Content="kusutori" NavigateUri="https://github.com/kusutori" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</dev:SettingsCard>
|
||||
|
||||
</dev:SettingsExpander.Items>
|
||||
<dev:SettingsExpander.ItemsFooter>
|
||||
<InfoBar
|
||||
x:Uid="SettingsPageDisclaimer"
|
||||
BorderThickness="0"
|
||||
CornerRadius="0"
|
||||
IsClosable="False"
|
||||
IsOpen="True"
|
||||
Severity="Warning" />
|
||||
</dev:SettingsExpander.ItemsFooter>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageMockMusicPlaying">
|
||||
<HyperlinkButton x:Uid="SettingsPagePlayingMockMusicButton" NavigateUri="https://soundcloud.com/carlyraejepsen/cut-to-the-feeling" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageCache" IsExpanded="True">
|
||||
<Button x:Uid="SettingsPageOpenFolderButton" Command="{x:Bind ViewModel.OpenCacheFolderCommand}" />
|
||||
<dev:SettingsExpander.Items>
|
||||
<dev:SettingsCard>
|
||||
<Button x:Uid="SettingsPageClearCache" Command="{x:Bind ViewModel.ClearCacheFilesCommand}" />
|
||||
</dev:SettingsCard>
|
||||
</dev:SettingsExpander.Items>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageSettings">
|
||||
<Button x:Uid="SettingsPageOpenFolderButton" Command="{x:Bind ViewModel.OpenSettingsFolderCommand}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsExpander x:Uid="SettingsPageSettingsManager" IsExpanded="True">
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<Button x:Uid="SettingsPageImportSettingsButton" Command="{x:Bind ViewModel.ImportSettingsCommand}" />
|
||||
<Button x:Uid="SettingsPageExportSettingsButton" Command="{x:Bind ViewModel.ExportSettingsCommand}" />
|
||||
</StackPanel>
|
||||
<dev:SettingsExpander.ItemsHeader>
|
||||
<InfoBar
|
||||
x:Uid="SettingsPageImportSettingsInfo"
|
||||
BorderThickness="0"
|
||||
CornerRadius="0"
|
||||
IsClosable="False"
|
||||
IsOpen="True"
|
||||
Severity="Warning" />
|
||||
</dev:SettingsExpander.ItemsHeader>
|
||||
</dev:SettingsExpander>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageDebugOverlay">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.IsDebugOverlayEnabled, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageFixedTimeStep" Visibility="Collapsed">
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.AppSettings.AdvancedSettings.IsFixedTimeStep, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
<dev:SettingsCard x:Uid="SettingsPageFPS" Visibility="Collapsed">
|
||||
<uc:ExtendedSlider
|
||||
Default="60"
|
||||
Frequency="10"
|
||||
Maximum="240"
|
||||
Minimum="30"
|
||||
Value="{x:Bind ViewModel.AppSettings.AdvancedSettings.FPS, Mode=TwoWay}" />
|
||||
</dev:SettingsCard>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
<uc:AboutControl />
|
||||
</controls:Case>
|
||||
|
||||
</controls:SwitchPresenter>
|
||||
|
||||
164
ShareHub/LyricsWindowStatus/desktop.json
Normal file
164
ShareHub/LyricsWindowStatus/desktop.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u684C\u9762\u6A21\u5F0F\uFF08\u900F\u660E\uFF09",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": false,
|
||||
"IsBorderless": true,
|
||||
"IsAlwaysOnTop": true,
|
||||
"IsAlwaysOnTopPolling": true,
|
||||
"IsShownInSwitchers": false,
|
||||
"IsClickThrough": true,
|
||||
"LyricsLayoutOrientation": 0,
|
||||
"LyricsDisplayType": 1,
|
||||
"WindowBounds": {
|
||||
"X": 100,
|
||||
"Y": 100,
|
||||
"Width": 600,
|
||||
"Height": 250,
|
||||
"Left": 100,
|
||||
"Top": 100,
|
||||
"Right": 700,
|
||||
"Bottom": 350,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 10,
|
||||
"Y": 10,
|
||||
"Width": 60,
|
||||
"Height": 25,
|
||||
"Left": 10,
|
||||
"Top": 10,
|
||||
"Right": 70,
|
||||
"Bottom": 35,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 1,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": false,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": false,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": true,
|
||||
"EnvironmentSampleMode": 3,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 1,
|
||||
"WindowX": 100,
|
||||
"WindowY": 100,
|
||||
"WindowWidth": 600,
|
||||
"WindowHeight": 250,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/docked-bottom.json
Normal file
164
ShareHub/LyricsWindowStatus/docked-bottom.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u505C\u9760\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": true,
|
||||
"IsBorderless": true,
|
||||
"IsAlwaysOnTop": true,
|
||||
"IsAlwaysOnTopPolling": true,
|
||||
"IsShownInSwitchers": false,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 0,
|
||||
"LyricsDisplayType": 1,
|
||||
"WindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 1015,
|
||||
"Width": 1920,
|
||||
"Height": 65,
|
||||
"Left": 0,
|
||||
"Top": 1015,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 101.5,
|
||||
"Width": 192,
|
||||
"Height": 6.5,
|
||||
"Left": 0,
|
||||
"Top": 101.5,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 1,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 1,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": true,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": false,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": true,
|
||||
"EnvironmentSampleMode": 1,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 0,
|
||||
"WindowX": 0,
|
||||
"WindowY": 1015,
|
||||
"WindowWidth": 1920,
|
||||
"WindowHeight": 65,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/docked-top.json
Normal file
164
ShareHub/LyricsWindowStatus/docked-top.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u505C\u9760\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": true,
|
||||
"IsBorderless": true,
|
||||
"IsAlwaysOnTop": true,
|
||||
"IsAlwaysOnTopPolling": true,
|
||||
"IsShownInSwitchers": false,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 0,
|
||||
"LyricsDisplayType": 1,
|
||||
"WindowBounds": {
|
||||
"X": 0,
|
||||
"Y": -1,
|
||||
"Width": 1920,
|
||||
"Height": 65,
|
||||
"Left": 0,
|
||||
"Top": -1,
|
||||
"Right": 1920,
|
||||
"Bottom": 64,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 0,
|
||||
"Y": -0.10000000149011612,
|
||||
"Width": 192,
|
||||
"Height": 6.5,
|
||||
"Left": 0,
|
||||
"Top": -0.10000000149011612,
|
||||
"Right": 192,
|
||||
"Bottom": 6.400000095367432,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 1,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": true,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": false,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": true,
|
||||
"EnvironmentSampleMode": 0,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 0,
|
||||
"WindowX": 0,
|
||||
"WindowY": -1,
|
||||
"WindowWidth": 1920,
|
||||
"WindowHeight": 65,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/fs-horiz.json
Normal file
164
ShareHub/LyricsWindowStatus/fs-horiz.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u5168\u5C4F\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": false,
|
||||
"IsBorderless": true,
|
||||
"IsAlwaysOnTop": true,
|
||||
"IsAlwaysOnTopPolling": false,
|
||||
"IsShownInSwitchers": true,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 0,
|
||||
"LyricsDisplayType": 2,
|
||||
"WindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 1,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": false,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": true,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": false,
|
||||
"EnvironmentSampleMode": 3,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 0,
|
||||
"WindowX": 0,
|
||||
"WindowY": 0,
|
||||
"WindowWidth": 1920,
|
||||
"WindowHeight": 1080,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/fs-vert.json
Normal file
164
ShareHub/LyricsWindowStatus/fs-vert.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u5168\u5C4F\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": false,
|
||||
"IsBorderless": true,
|
||||
"IsAlwaysOnTop": true,
|
||||
"IsAlwaysOnTopPolling": false,
|
||||
"IsShownInSwitchers": true,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 1,
|
||||
"LyricsDisplayType": 2,
|
||||
"WindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 1,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": false,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": true,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": false,
|
||||
"EnvironmentSampleMode": 3,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 0,
|
||||
"WindowX": 0,
|
||||
"WindowY": 0,
|
||||
"WindowWidth": 1920,
|
||||
"WindowHeight": 1080,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/narrow.json
Normal file
164
ShareHub/LyricsWindowStatus/narrow.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u7A84\u5C4F\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": false,
|
||||
"IsBorderless": false,
|
||||
"IsAlwaysOnTop": false,
|
||||
"IsAlwaysOnTopPolling": false,
|
||||
"IsShownInSwitchers": true,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 1,
|
||||
"LyricsDisplayType": 2,
|
||||
"WindowBounds": {
|
||||
"X": 100,
|
||||
"Y": 100,
|
||||
"Width": 400,
|
||||
"Height": 800,
|
||||
"Left": 100,
|
||||
"Top": 100,
|
||||
"Right": 500,
|
||||
"Bottom": 900,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 10,
|
||||
"Y": 10,
|
||||
"Width": 40,
|
||||
"Height": 80,
|
||||
"Left": 10,
|
||||
"Top": 10,
|
||||
"Right": 50,
|
||||
"Bottom": 90,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 0,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": false,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": true,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": false,
|
||||
"EnvironmentSampleMode": 3,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 1,
|
||||
"WindowX": 100,
|
||||
"WindowY": 100,
|
||||
"WindowWidth": 400,
|
||||
"WindowHeight": 800,
|
||||
"IsActive": false
|
||||
}
|
||||
164
ShareHub/LyricsWindowStatus/std-horiz.json
Normal file
164
ShareHub/LyricsWindowStatus/std-horiz.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"Name": "\u6807\u51C6\u6A21\u5F0F",
|
||||
"IsDefault": false,
|
||||
"MonitorDeviceName": "\\\\.\\DISPLAY1",
|
||||
"IsWorkArea": false,
|
||||
"IsBorderless": false,
|
||||
"IsAlwaysOnTop": false,
|
||||
"IsAlwaysOnTopPolling": false,
|
||||
"IsShownInSwitchers": true,
|
||||
"IsClickThrough": false,
|
||||
"LyricsLayoutOrientation": 0,
|
||||
"LyricsDisplayType": 2,
|
||||
"WindowBounds": {
|
||||
"X": 100,
|
||||
"Y": 100,
|
||||
"Width": 800,
|
||||
"Height": 500,
|
||||
"Left": 100,
|
||||
"Top": 100,
|
||||
"Right": 900,
|
||||
"Bottom": 600,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockHeight": 64,
|
||||
"DemoWindowBounds": {
|
||||
"X": 10,
|
||||
"Y": 10,
|
||||
"Width": 80,
|
||||
"Height": 50,
|
||||
"Left": 10,
|
||||
"Top": 10,
|
||||
"Right": 90,
|
||||
"Bottom": 60,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"MonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 1920,
|
||||
"Height": 1080,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 1920,
|
||||
"Bottom": 1080,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DemoMonitorBounds": {
|
||||
"X": 0,
|
||||
"Y": 0,
|
||||
"Width": 192,
|
||||
"Height": 108,
|
||||
"Left": 0,
|
||||
"Top": 0,
|
||||
"Right": 192,
|
||||
"Bottom": 108,
|
||||
"IsEmpty": false
|
||||
},
|
||||
"DockPlacement": 0,
|
||||
"LyricsStyleSettings": {
|
||||
"IsDynamicLyricsFontSize": true,
|
||||
"PhoneticLyricsFontSize": 12,
|
||||
"OriginalLyricsFontSize": 24,
|
||||
"TranslatedLyricsFontSize": 12,
|
||||
"LyricsAlignmentType": 0,
|
||||
"LyricsBgFontOpacity": 30,
|
||||
"LyricsFontStrokeWidth": 0,
|
||||
"LyricsCustomBgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomFgFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsCustomStrokeFontColor": {
|
||||
"A": 255,
|
||||
"R": 255,
|
||||
"G": 255,
|
||||
"B": 255
|
||||
},
|
||||
"LyricsBgFontColorType": 1,
|
||||
"LyricsFgFontColorType": 1,
|
||||
"LyricsStrokeFontColorType": 1,
|
||||
"LyricsFontWeight": 7,
|
||||
"LyricsLineSpacingFactor": 0.5,
|
||||
"LyricsTranslationSeparator": "\n",
|
||||
"LyricsCJKFontFamily": "Arial",
|
||||
"LyricsWesternFontFamily": "Arial",
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsEffectSettings": {
|
||||
"LyricsBlurAmount": 5,
|
||||
"IsLyricsLineFadeEnabled": true,
|
||||
"IsLyricsGlowEffectEnabled": true,
|
||||
"LyricsGlowEffectScope": 0,
|
||||
"LyricsGlowEffectAmount": 8,
|
||||
"IsLyricsShadowEnabled": false,
|
||||
"LyricsShadowScope": 1,
|
||||
"LyricsShadowAmount": 8,
|
||||
"OriginalLyricsHighlightScope": 1,
|
||||
"PhoneticLyricsHighlightAmount": 60,
|
||||
"OriginalLyricsHighlightAmount": 100,
|
||||
"TranslatedLyricsHighlightAmount": 60,
|
||||
"IsLyricsFloatAnimationEnabled": true,
|
||||
"LyricsFloatAmount": 1,
|
||||
"LyricsScrollEasingType": 3,
|
||||
"LyricsScrollDuration": 500,
|
||||
"LyricsScrollTopDuration": 500,
|
||||
"LyricsScrollBottomDuration": 500,
|
||||
"LyricsScrollTopDelay": 0,
|
||||
"LyricsScrollBottomDelay": 0,
|
||||
"LyricsVerticalEdgeOpacity": 0,
|
||||
"IsFanLyricsEnabled": false,
|
||||
"FanLyricsAngle": 30,
|
||||
"Is3DLyricsEnabled": false,
|
||||
"Lyrics3DXAngle": 30,
|
||||
"Lyrics3DYAngle": 0,
|
||||
"Lyrics3DZAngle": 0,
|
||||
"Lyrics3DDepth": 1000,
|
||||
"IsActive": false
|
||||
},
|
||||
"LyricsBackgroundSettings": {
|
||||
"LyricsBackgroundTheme": 2,
|
||||
"IsPureColorOverlayEnabled": false,
|
||||
"PureColorOverlayOpacity": 100,
|
||||
"IsCoverOverlayEnabled": false,
|
||||
"CoverOverlayBlurAmount": 100,
|
||||
"CoverOverlayOpacity": 100,
|
||||
"CoverOverlaySpeed": 50,
|
||||
"CoverAcrylicEffectAmount": 0,
|
||||
"IsFluidOverlayEnabled": true,
|
||||
"FluidOverlayOpacity": 100,
|
||||
"PaletteGeneratorType": 0,
|
||||
"IsSpectrumOverlayEnabled": false,
|
||||
"IsSnowFlakeOverlayEnabled": false,
|
||||
"SnowFlakeOverlayAmount": 50,
|
||||
"IsActive": false
|
||||
},
|
||||
"AlbumArtLayoutSettings": {
|
||||
"SongInfoAlignmentType": 0,
|
||||
"CoverImageRadius": 12,
|
||||
"CoverImageShadowAmount": 12,
|
||||
"IsAutoSongInfoFontSize": true,
|
||||
"SongInfoFontSize": 18,
|
||||
"ShowTitle": true,
|
||||
"ShowArtists": true,
|
||||
"AlbumArtSize": 64,
|
||||
"AutoAlbumArtSize": true,
|
||||
"IsActive": false
|
||||
},
|
||||
"IsAdaptToEnvironment": false,
|
||||
"EnvironmentSampleMode": 3,
|
||||
"AutoShowOrHideWindow": false,
|
||||
"TitleBarArea": 1,
|
||||
"WindowX": 100,
|
||||
"WindowY": 100,
|
||||
"WindowWidth": 800,
|
||||
"WindowHeight": 500,
|
||||
"IsActive": false
|
||||
}
|
||||
16
ShareHub/index.md
Normal file
16
ShareHub/index.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Welcome to ShareHub
|
||||
|
||||
## Shared lyrics window status
|
||||
|
||||
[Desktop](LyricsWindowStatus/desktop.json)
|
||||
|
||||
[Docked (Bottom)](LyricsWindowStatus/docked-bottom.json)
|
||||
|
||||
[Docked (Top)](LyricsWindowStatus/docked-top.json)
|
||||
|
||||
[Fullscreen (Horizontal)](LyricsWindowStatus/fs-horiz.json)
|
||||
|
||||
[Fullscreen (Vertical)](LyricsWindowStatus/fs-vert.json)
|
||||
|
||||
[Standard (Horizontal)](LyricsWindowStatus/std-horiz.json)
|
||||
|
||||
Reference in New Issue
Block a user