Fixing some warnings (#6250)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Content.Client.Stylesheets
|
||||
{
|
||||
public static class ResCacheExtension
|
||||
{
|
||||
public static Font notoStack(this IResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
|
||||
public static Font NotoStack(this IResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
|
||||
{
|
||||
var ds = display ? "Display" : "";
|
||||
var sv = variation.StartsWith("Bold") ? "Bold" : "Regular";
|
||||
@@ -109,19 +109,19 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
public StyleNano(IResourceCache resCache) : base(resCache)
|
||||
{
|
||||
var notoSans10 = resCache.notoStack(size: 10);
|
||||
var notoSansItalic10 = resCache.notoStack(variation: "Italic", size: 10);
|
||||
var notoSans12 = resCache.notoStack(size: 12);
|
||||
var notoSansItalic12 = resCache.notoStack(variation: "Italic", size: 12);
|
||||
var notoSansBold12 = resCache.notoStack(variation: "Bold", size: 12);
|
||||
var notoSansBoldItalic12 = resCache.notoStack(variation: "BoldItalic", size: 12);
|
||||
var notoSansDisplayBold14 = resCache.notoStack(variation: "Bold", display: true, size: 14);
|
||||
var notoSansDisplayBold16 = resCache.notoStack(variation: "Bold", display: true, size: 16);
|
||||
var notoSans15 = resCache.notoStack(variation: "Regular", size: 15);
|
||||
var notoSans16 = resCache.notoStack(variation: "Regular", size: 16);
|
||||
var notoSansBold16 = resCache.notoStack(variation: "Bold", size: 16);
|
||||
var notoSansBold18 = resCache.notoStack(variation: "Bold", size: 18);
|
||||
var notoSansBold20 = resCache.notoStack(variation: "Bold", size: 20);
|
||||
var notoSans10 = resCache.NotoStack(size: 10);
|
||||
var notoSansItalic10 = resCache.NotoStack(variation: "Italic", size: 10);
|
||||
var notoSans12 = resCache.NotoStack(size: 12);
|
||||
var notoSansItalic12 = resCache.NotoStack(variation: "Italic", size: 12);
|
||||
var notoSansBold12 = resCache.NotoStack(variation: "Bold", size: 12);
|
||||
var notoSansBoldItalic12 = resCache.NotoStack(variation: "BoldItalic", size: 12);
|
||||
var notoSansDisplayBold14 = resCache.NotoStack(variation: "Bold", display: true, size: 14);
|
||||
var notoSansDisplayBold16 = resCache.NotoStack(variation: "Bold", display: true, size: 16);
|
||||
var notoSans15 = resCache.NotoStack(variation: "Regular", size: 15);
|
||||
var notoSans16 = resCache.NotoStack(variation: "Regular", size: 16);
|
||||
var notoSansBold16 = resCache.NotoStack(variation: "Bold", size: 16);
|
||||
var notoSansBold18 = resCache.NotoStack(variation: "Bold", size: 18);
|
||||
var notoSansBold20 = resCache.NotoStack(variation: "Bold", size: 20);
|
||||
var windowHeaderTex = resCache.GetTexture("/Textures/Interface/Nano/window_header.png");
|
||||
var windowHeader = new StyleBoxTexture
|
||||
{
|
||||
@@ -453,7 +453,7 @@ namespace Content.Client.Stylesheets
|
||||
{
|
||||
// Window title.
|
||||
new StyleRule(
|
||||
new SelectorElement(typeof(Label), new[] {SS14Window.StyleClassWindowTitle}, null, null),
|
||||
new SelectorElement(typeof(Label), new[] {DefaultWindow.StyleClassWindowTitle}, null, null),
|
||||
new[]
|
||||
{
|
||||
new StyleProperty(Label.StylePropertyFontColor, NanoGold),
|
||||
@@ -469,7 +469,7 @@ namespace Content.Client.Stylesheets
|
||||
}),
|
||||
// Window background.
|
||||
new StyleRule(
|
||||
new SelectorElement(null, new[] {SS14Window.StyleClassWindowPanel}, null, null),
|
||||
new SelectorElement(null, new[] {DefaultWindow.StyleClassWindowPanel}, null, null),
|
||||
new[]
|
||||
{
|
||||
new StyleProperty(PanelContainer.StylePropertyPanel, windowBackground),
|
||||
@@ -509,7 +509,7 @@ namespace Content.Client.Stylesheets
|
||||
}),
|
||||
// Window header.
|
||||
new StyleRule(
|
||||
new SelectorElement(typeof(PanelContainer), new[] {SS14Window.StyleClassWindowHeader}, null, null),
|
||||
new SelectorElement(typeof(PanelContainer), new[] {DefaultWindow.StyleClassWindowHeader}, null, null),
|
||||
new[]
|
||||
{
|
||||
new StyleProperty(PanelContainer.StylePropertyPanel, windowHeader),
|
||||
|
||||
Reference in New Issue
Block a user