Exemple #1
0
 //============================================================
 // <T>加载主题样式属性。</T>
 //
 // @param property 主题样式属性
 //============================================================
 public void LoadStyleProperty(FTplThemeStyleProperty property)
 {
     if (property == null)
     {
         return;
     }
     _left.Parse(property.GetString("left"));
     _top.Parse(property.GetString("top"));
     _right.Parse(property.GetString("right"));
     _bottom.Parse(property.GetString("bottom"));
 }
Exemple #2
0
        //============================================================
        // <T>加载样式属性。</T>
        //============================================================
        public override void LoadStyleProperty()
        {
            // 加载父样式属性
            base.LoadStyleProperty();
            // 加载样式信息
            FTplThemeStyle style = RContent2dManager.ThemeConsole.FindActiveStyle("frame.static.label");

            if (style != null)
            {
                _propertyFont = style.FindProperty("font");
            }
        }
Exemple #3
0
 //============================================================
 // <T>加载主题样式属性。</T>
 //
 // @param property 主题样式属性
 //============================================================
 public void LoadStyleProperty(FTplThemeStyleProperty property)
 {
     if (property == null)
     {
         return;
     }
     _fontName  = property.GetString("font_name");
     _color     = property.GetHex("color", _color);
     _size      = property.GetInteger("size", _size);
     _bold      = property.GetBoolean("bold", _bold);
     _italic    = property.GetBoolean("italic", _italic);
     _underline = property.GetBoolean("underline", _underline);
     _strikeout = property.GetBoolean("strikeout", _strikeout);
 }
Exemple #4
0
        //============================================================
        // <T>加载样式属性。</T>
        //============================================================
        public override void LoadStyleProperty()
        {
            // 加载父样式属性
            base.LoadStyleProperty();
            // 加载样式信息
            FTplThemeStyle style = RContent2dManager.ThemeConsole.FindActiveStyle("frame.number");

            if (style != null)
            {
                _propertyBorderInner = style.FindProperty("border_inner");
                _propertyBorderOuter = style.FindProperty("border_outer");
                _propertyBackColor   = style.FindProperty("back_color");
                _propertyFont        = style.FindProperty("font");
            }
        }
Exemple #5
0
 //============================================================
 // <T>加载主题样式属性。</T>
 //
 // @param property 主题样式属性
 //============================================================
 public bool EqualsStyleProperty(FTplThemeStyleProperty property)
 {
     if (property == null)
     {
         return(false);
     }
     if (_left.ToString() != property.GetString("left"))
     {
         return(false);
     }
     if (_top.ToString() != property.GetString("top"))
     {
         return(false);
     }
     if (_right.ToString() != property.GetString("right"))
     {
         return(false);
     }
     if (_bottom.ToString() != property.GetString("bottom"))
     {
         return(false);
     }
     return(true);
 }
Exemple #6
0
 //============================================================
 // <T>加载主题样式属性。</T>
 //
 // @param property 主题样式属性
 //============================================================
 public bool EqualsStyleProperty(FTplThemeStyleProperty property)
 {
     if (property == null)
     {
         return(false);
     }
     if (_fontName != property.GetString("font_name"))
     {
         return(false);
     }
     if (_color != property.GetHex("color", _color))
     {
         return(false);
     }
     if (_size != property.GetInteger("size", _size))
     {
         return(false);
     }
     if (_bold != property.GetBoolean("bold", _bold))
     {
         return(false);
     }
     if (_italic != property.GetBoolean("italic", _italic))
     {
         return(false);
     }
     if (_underline != property.GetBoolean("underline", _underline))
     {
         return(false);
     }
     if (_strikeout != property.GetBoolean("strikeout", _strikeout))
     {
         return(false);
     }
     return(true);
 }