示例#1
0
 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);
     }
 }
示例#2
0
 public override void ApplyTheme(IMenuTheme theme)
 {
     if (this.ignoreTheme)
     {
         return;
     }
     theme.ButtonColor.Apply(this.button.GetNormalTexture().SetVertexColor);
     theme.ButtonColor.Apply(this.button.GetPushedTexture().SetVertexColor);
 }
示例#3
0
 public override void ApplyTheme(IMenuTheme theme)
 {
     // TODO: Set text color when available in theme.
     base.ApplyTheme(theme);
 }
示例#4
0
 public override void ApplyTheme(IMenuTheme theme)
 {
     base.ApplyTheme(theme);
     this.window.ApplyTheme(theme);
 }
示例#5
0
 public override void ApplyTheme(IMenuTheme theme)
 {
 }
示例#6
0
 public void ApplyTheme(IMenuTheme theme)
 {
     theme.TitleBarTextColor.Apply(this.textFrame.SetTextColor);
     theme.TitleBarBackgroundColor.Apply(this.background.SetTexture);
 }
示例#7
0
 public override void ApplyTheme(IMenuTheme theme)
 {
     this.Content.ForEach(c => c.ApplyTheme(theme));
 }
示例#8
0
 public void ApplyTheme(IMenuTheme theme)
 {
     this.titleBar.ApplyTheme(theme);
     this.contentContainer.ApplyTheme(theme);
 }
示例#9
0
 public abstract void ApplyTheme(IMenuTheme theme);
 public override void ApplyTheme(IMenuTheme theme)
 {
     this.Inner.ApplyTheme(theme);
 }