mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
UI: Change the github button in the About window to a gitlab one
This commit is contained in:
parent
80ab0f96b9
commit
11ea020092
8 changed files with 30 additions and 30 deletions
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5 KiB |
BIN
src/Ryujinx/Assets/UIImages/Logo_GitLab.png
Normal file
BIN
src/Ryujinx/Assets/UIImages/Logo_GitLab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
|
@ -15198,28 +15198,28 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ID": "AboutGithubUrlTooltipMessage",
|
"ID": "AboutGitLabUrlTooltipMessage",
|
||||||
"Translations": {
|
"Translations": {
|
||||||
"ar_SA": "انقر لفتح صفحة ريوجينكس في غيت هاب في متصفحك الافتراضي.",
|
"ar_SA": "انقر لفتح صفحة ريوجينكس في غيت هاب في متصفحك الافتراضي.",
|
||||||
"de_DE": "Klicke hier, um die Ryujinx GitHub Seite im Standardbrowser zu öffnen.",
|
"de_DE": "Klicke hier, um die Ryujinx GitLab Seite im Standardbrowser zu öffnen.",
|
||||||
"el_GR": "Κάντε κλικ για να ανοίξετε τη σελίδα Ryujinx GitHub στο προεπιλεγμένο πρόγραμμα περιήγησης.",
|
"el_GR": "Κάντε κλικ για να ανοίξετε τη σελίδα Ryujinx GitLab στο προεπιλεγμένο πρόγραμμα περιήγησης.",
|
||||||
"en_US": "Click to open the Ryujinx GitHub page in your default browser.",
|
"en_US": "Click to open the Ryujinx GitLab page in your default browser.",
|
||||||
"es_ES": "Haz clic para abrir el GitHub de Ryujinx en tu navegador predeterminado.",
|
"es_ES": "Haz clic para abrir el GitLab de Ryujinx en tu navegador predeterminado.",
|
||||||
"fr_FR": "Cliquez pour ouvrir la page GitHub de Ryujinx dans votre navigateur par défaut.",
|
"fr_FR": "Cliquez pour ouvrir la page GitLab de Ryujinx dans votre navigateur par défaut.",
|
||||||
"he_IL": "לחץ כדי לפתוח את דף הגיטהב של ריוג'ינקס בדפדפן ברירת המחדל שלך.",
|
"he_IL": "לחץ כדי לפתוח את דף הגיטהב של ריוג'ינקס בדפדפן ברירת המחדל שלך.",
|
||||||
"it_IT": "Clicca per aprire la pagina GitHub di Ryujinx nel tuo browser predefinito.",
|
"it_IT": "Clicca per aprire la pagina GitLab di Ryujinx nel tuo browser predefinito.",
|
||||||
"ja_JP": "クリックするとデフォルトのブラウザで Ryujinx の Github ページを開きます.",
|
"ja_JP": "クリックするとデフォルトのブラウザで Ryujinx の GitLab ページを開きます.",
|
||||||
"ko_KR": "클릭하면 기본 브라우저에서 Ryujinx GitHub 페이지가 열립니다.",
|
"ko_KR": "클릭하면 기본 브라우저에서 Ryujinx GitLab 페이지가 열립니다.",
|
||||||
"no_NO": "Klikk for å åpne Ryujinx GitHub siden i din standardnettleser.",
|
"no_NO": "Klikk for å åpne Ryujinx GitLab siden i din standardnettleser.",
|
||||||
"pl_PL": "Kliknij, aby otworzyć stronę GitHub Ryujinx w domyślnej przeglądarce.",
|
"pl_PL": "Kliknij, aby otworzyć stronę GitLab Ryujinx w domyślnej przeglądarce.",
|
||||||
"pt_BR": "Clique para abrir a página do GitHub do Ryujinx no seu navegador padrão.",
|
"pt_BR": "Clique para abrir a página do GitLab do Ryujinx no seu navegador padrão.",
|
||||||
"ru_RU": "Нажмите, чтобы открыть страницу Ryujinx на GitHub",
|
"ru_RU": "Нажмите, чтобы открыть страницу Ryujinx на GitLab",
|
||||||
"sv_SE": "Klicka för att öppna Ryujinx GitHub-sida i din webbläsare.",
|
"sv_SE": "Klicka för att öppna Ryujinx GitLab-sida i din webbläsare.",
|
||||||
"th_TH": "คลิกเพื่อเปิดหน้า Github ของ Ryujinx บนเบราว์เซอร์เริ่มต้นของคุณ",
|
"th_TH": "คลิกเพื่อเปิดหน้า GitLab ของ Ryujinx บนเบราว์เซอร์เริ่มต้นของคุณ",
|
||||||
"tr_TR": "Ryujinx'in GitHub sayfasını varsayılan tarayıcınızda açmak için tıklayın.",
|
"tr_TR": "Ryujinx'in GitLab sayfasını varsayılan tarayıcınızda açmak için tıklayın.",
|
||||||
"uk_UA": "Натисніть, щоб відкрити сторінку GitHub Ryujinx у браузері.",
|
"uk_UA": "Натисніть, щоб відкрити сторінку GitLab Ryujinx у браузері.",
|
||||||
"zh_CN": "在浏览器中打开 Ryujinx 的 GitHub 代码库。",
|
"zh_CN": "在浏览器中打开 Ryujinx 的 GitLab 代码库。",
|
||||||
"zh_TW": "在預設瀏覽器中開啟 Ryujinx 的 GitHub 網頁。"
|
"zh_TW": "在預設瀏覽器中開啟 Ryujinx 的 GitLab 網頁。"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -168,8 +168,7 @@
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_Amiibo.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_Amiibo.png" />
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_Discord_Dark.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_Discord_Dark.png" />
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_Discord_Light.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_Discord_Light.png" />
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_GitHub_Dark.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_GitLab.png" />
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_GitHub_Light.png" />
|
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_Ryujinx.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_Ryujinx.png" />
|
||||||
<EmbeddedResource Include="Assets\UIImages\Logo_Ryujinx_AntiAlias.png" />
|
<EmbeddedResource Include="Assets\UIImages\Logo_Ryujinx_AntiAlias.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
{
|
{
|
||||||
public partial class AboutWindowViewModel : BaseModel, IDisposable
|
public partial class AboutWindowViewModel : BaseModel, IDisposable
|
||||||
{
|
{
|
||||||
[ObservableProperty] private Bitmap _githubLogo;
|
[ObservableProperty] private Bitmap _gitLabLogo;
|
||||||
[ObservableProperty] private Bitmap _discordLogo;
|
[ObservableProperty] private Bitmap _discordLogo;
|
||||||
[ObservableProperty] private string _version;
|
[ObservableProperty] private string _version;
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
Version = RyujinxApp.FullAppName + "\n" + Program.Version;
|
Version = RyujinxApp.FullAppName + "\n" + Program.Version;
|
||||||
UpdateLogoTheme(ConfigurationState.Instance.UI.BaseStyle.Value);
|
UpdateLogoTheme(ConfigurationState.Instance.UI.BaseStyle.Value);
|
||||||
|
|
||||||
|
GitLabLogo = LoadBitmap("resm:Ryujinx.Assets.UIImages.Logo_GitLab.png?assembly=Ryujinx");
|
||||||
|
|
||||||
RyujinxApp.ThemeChanged += Ryujinx_ThemeChanged;
|
RyujinxApp.ThemeChanged += Ryujinx_ThemeChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +42,6 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
string themeName = isDarkTheme ? "Dark" : "Light";
|
string themeName = isDarkTheme ? "Dark" : "Light";
|
||||||
|
|
||||||
GithubLogo = LoadBitmap(LogoPathFormat.Format("GitHub", themeName));
|
|
||||||
DiscordLogo = LoadBitmap(LogoPathFormat.Format("Discord", themeName));
|
DiscordLogo = LoadBitmap(LogoPathFormat.Format("Discord", themeName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
{
|
{
|
||||||
RyujinxApp.ThemeChanged -= Ryujinx_ThemeChanged;
|
RyujinxApp.ThemeChanged -= Ryujinx_ThemeChanged;
|
||||||
|
|
||||||
GithubLogo.Dispose();
|
GitLabLogo.Dispose();
|
||||||
DiscordLogo.Dispose();
|
DiscordLogo.Dispose();
|
||||||
|
|
||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
Spacing="10">
|
Spacing="10">
|
||||||
<Button Name="GitHubRepoButton"
|
<Button Name="GitRepoButton"
|
||||||
MinWidth="30"
|
MinWidth="30"
|
||||||
MinHeight="30"
|
MinHeight="30"
|
||||||
MaxWidth="30"
|
MaxWidth="30"
|
||||||
|
@ -113,8 +113,8 @@
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
Click="Button_OnClick"
|
Click="Button_OnClick"
|
||||||
CornerRadius="15"
|
CornerRadius="15"
|
||||||
ToolTip.Tip="{ext:Locale AboutGithubUrlTooltipMessage}">
|
ToolTip.Tip="{ext:Locale AboutGitLabUrlTooltipMessage}">
|
||||||
<Image Source="{Binding GithubLogo}" />
|
<Image Source="{Binding GitLabLogo}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
MinWidth="30"
|
MinWidth="30"
|
||||||
|
|
|
@ -19,8 +19,8 @@ namespace Ryujinx.Ava.UI.Views.Dialog
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
GitHubRepoButton.Tag =
|
GitRepoButton.Tag =
|
||||||
$"https://github.com/{ReleaseInformation.ReleaseChannelOwner}/{ReleaseInformation.ReleaseChannelRepo}";
|
$"https://git.ryujinx.app/{ReleaseInformation.ReleaseChannelOwner}/{ReleaseInformation.ReleaseChannelSourceRepo}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task Show()
|
public static async Task Show()
|
||||||
|
|
Loading…
Add table
Reference in a new issue