Dark theme logo and package icons

This commit is contained in:
James Rowe 2019-12-06 01:59:50 -07:00
parent 37d27a82ba
commit b356f0057f
11 changed files with 64 additions and 17 deletions

View File

@ -15,6 +15,7 @@ auth_url = "https://api.yuzu-emu.org/jwt/installer/"
[[packages]]
name = "yuzu"
description = "Includes frequent updates to yuzu with all the latest reviewed and tested features."
icon = "thicc_logo_installer_shadow.png"
default = true
[packages.source]
name = "github"
@ -29,6 +30,7 @@ default = true
[[packages]]
name = "yuzu Early Access"
description = "Bonus preview release for project supporters. Thanks for your support!"
icon = "thicc_logo_installer__ea_shadow.png"
# Displayed when the package has no authentication for the user
need_authentication_description = "Click here to sign in with your yuzu account for Early Access"
# Displayed when the package has an authentication, but the user has not linked their account

View File

@ -32,6 +32,8 @@ pub struct PackageShortcut {
pub struct PackageDescription {
pub name: String,
pub description: String,
#[serde(default)]
pub icon: Option<String>,
pub default: Option<bool>,
pub source: PackageSource,
#[serde(default)]

View File

@ -34,7 +34,10 @@ pub fn file_from_string(file_path: &str) -> Option<(String, &'static [u8])> {
file_path,
"/index.html",
"/favicon.ico",
"/img/logo.png",
"/img/light_mode_installer_logo.png",
"/img/dark_mode_installer_logo.png",
"/thicc_logo_installer__ea_shadow.png",
"/thicc_logo_installer_shadow.png",
"/img/how-to-open.png",
"/css/app.css",
"/css/chunk-vendors.css",

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -4,7 +4,7 @@
<div class="container is-max-height">
<div class="columns is-max-height">
<div class="column is-one-third has-padding" v-if="!$root.$data.metadata.is_launcher">
<img src="./assets/logo.png" width="60%" alt="Application icon" />
<img src="./assets/light_mode_installer_logo.png" id="applicationIcon" alt="Application icon" />
<br />
<br />
@ -52,6 +52,30 @@ body, div, span, h1, h2, h3, h4, h5, h6 {
cursor: default;
}
#applicationIcon {
width:0px; height: 0px;
padding: 50px 60% 0px 0px;
background: url("./assets/light_mode_installer_logo.png") left top no-repeat;
background-size: contain;
}
body.has-background-black-ter #applicationIcon {
background: url("./assets/dark_mode_installer_logo.png") left top no-repeat;
background-size: contain;
}
.package-icon {
width: 3rem;
height: 3rem;
float: left;
padding-right: 10px;
padding-top: 10px;
}
.package-description {
overflow: hidden;
}
pre {
-webkit-user-select: text;
-moz-user-select: text;

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -14,45 +14,60 @@
</b-checkbox>
<span v-if="Lpackage.installed"><i>(installed)</i></span>
</label>
<p>
{{ Lpackage.description }}
</p>
<div>
<img class="package-icon" :src="`${publicPath + Lpackage.icon}`"/>
<p class="package-description">
{{ Lpackage.description }}
</p>
</div>
</div>
<div class="box clickable-box" v-else-if="Lpackage.requires_authorization && !$root.$data.is_authenticated" v-on:click="show_authentication">
<div class="ribbon" v-if="Lpackage.is_new"><span>New!</span></div>
<b-checkbox>
{{ Lpackage.name }}
</b-checkbox>
<p>
{{Lpackage.need_authentication_description}}
</p>
<div>
<img class="package-icon" :src="`${publicPath + Lpackage.icon}`"/>
<p class="package-description">
{{ Lpackage.description }}
</p>
</div>
</div>
<div class="box clickable-box" v-else-if="Lpackage.requires_authorization && !$root.$data.is_linked" v-on:click="show_authorization">
<div class="ribbon" v-if="Lpackage.is_new"><span>New!</span></div>
<b-checkbox>
{{ Lpackage.name }}
</b-checkbox>
<p>
{{Lpackage.need_link_description}}
</p>
<div>
<img class="package-icon" :src="`${publicPath + Lpackage.icon}`"/>
<p class="package-description">
{{ Lpackage.description }}
</p>
</div>
</div>
<div class="box clickable-box" v-else-if="Lpackage.requires_authorization && !$root.$data.is_subscribed" v-on:click="show_authorization">
<div class="ribbon" v-if="Lpackage.is_new"><span>New!</span></div>
<b-checkbox>
{{ Lpackage.name }}
</b-checkbox>
<p>
{{Lpackage.need_subscription_description}}
</p>
<div>
<img class="package-icon" :src="`${publicPath + Lpackage.icon}`"/>
<p class="package-description">
{{ Lpackage.description }}
</p>
</div>
</div>
<div class="box clickable-box" v-else v-on:click="show_authorization">
<div class="ribbon" v-if="Lpackage.is_new"><span>New!</span></div>
<b-checkbox>
{{ Lpackage.name }}
</b-checkbox>
<p>
{{Lpackage.need_reward_tier_description}}
</p>
<div>
<img class="package-icon" :src="`${publicPath + Lpackage.icon}`"/>
<p class="package-description">
{{ Lpackage.description }}
</p>
</div>
</div>
</div>
</div>
@ -116,6 +131,7 @@ export default {
},
data: function () {
return {
publicPath: process.env.BASE_URL,
advanced: false
}
},