public void ApplyTheme(IMenuTheme theme) { this.background.SetTexture(theme.BackgroundTexturePath); if (theme.BackgroundTextureInserts != null) { var inserts = theme.BackgroundTextureInserts; this.background.SetTexCoord(inserts.Left, inserts.Right, inserts.Top, inserts.Bottom); } }
public override void ApplyTheme(IMenuTheme theme) { if (this.ignoreTheme) { return; } theme.ButtonColor.Apply(this.button.GetNormalTexture().SetVertexColor); theme.ButtonColor.Apply(this.button.GetPushedTexture().SetVertexColor); }
public override void ApplyTheme(IMenuTheme theme) { // TODO: Set text color when available in theme. base.ApplyTheme(theme); }
public override void ApplyTheme(IMenuTheme theme) { base.ApplyTheme(theme); this.window.ApplyTheme(theme); }
public override void ApplyTheme(IMenuTheme theme) { }
public void ApplyTheme(IMenuTheme theme) { theme.TitleBarTextColor.Apply(this.textFrame.SetTextColor); theme.TitleBarBackgroundColor.Apply(this.background.SetTexture); }
public override void ApplyTheme(IMenuTheme theme) { this.Content.ForEach(c => c.ApplyTheme(theme)); }
public void ApplyTheme(IMenuTheme theme) { this.titleBar.ApplyTheme(theme); this.contentContainer.ApplyTheme(theme); }
public abstract void ApplyTheme(IMenuTheme theme);
public override void ApplyTheme(IMenuTheme theme) { this.Inner.ApplyTheme(theme); }