⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo.xml

📁 这是我下的一个人的作品
💻 XML
字号:
<synth>

  <style id="panel">  
	  <object id="background" class="demo.synth.BackgroundPainter"/>
	  <object class="javax.swing.plaf.ColorUIResource" id="startColor">
	    <int>30</int>
	    <int>123</int>
	    <int>235</int>
	  </object>
	  <defaultsProperty key="Panel.startBackground" type="idref" value="startColor"/>
	  <object class="javax.swing.plaf.ColorUIResource" id="endColor">
	    <int>1</int>
	    <int>20</int>
	    <int>80</int>
	  </object>
	  <defaultsProperty key="Panel.endBackground" type="idref" value="endColor"/>
     <painter method="panelBackground" idref="background"/>
  </style>
  <bind style="panel" type="region" key="Panel"/>


  <style id="default">
  		<font name="Aharoni" size="14"/> 
  		<state>
  		   <color value="#FFFFFF" type="FOREGROUND"/> 
  		</state>
  </style>
  <bind style="default" type="region" key=".*"/>	
  

  <style id="textfield">
    <state>
       <font name="Aharoni" size="14"/>
       <color value="#D2DFF2" type="BACKGROUND"/>
       <color value="#000000" type="TEXT_FOREGROUND"/>
    </state>
    <imagePainter method="textFieldBorder" path="images/textfield.png"
                  sourceInsets="4 6 4 6" paintCenter="false"/>
    <insets top="4" left="6" bottom="4" right="6"/>
  </style>
  <bind style="textfield" type="region" key="TextField"/>
    
  
  <style id="button">
      <state>
	    <imagePainter method="buttonBackground" path="images/button.png"
	                  sourceInsets="9 10 9 12" paintCenter="true" stretch="true"/>
	    <insets top="9" left="10" bottom="9" right="12"/>
	    <font name="Aharoni" size="16"/>
	    <color type="TEXT_FOREGROUND" value="#FFFFFF"/>
      </state>
      <state value="MOUSE_OVER">    
	    <imagePainter method="buttonBackground" path="images/button_on.png"
	                  sourceInsets="9 10 9 12" paintCenter="true" stretch="true"/>
	    <insets top="9" left="10" bottom="9" right="12"/>
	    <color type="TEXT_FOREGROUND" value="#FFFFFF"/>
      </state>
      <state value="PRESSED"> 
	    <imagePainter method="buttonBackground" path="images/button_press.png"
	                  sourceInsets="10 12 8 9" paintCenter="true" stretch="true"/>
	    <insets top="10" left="12" bottom="8" right="9"/>
	    <color type="TEXT_FOREGROUND" value="#FFFFFF"/>      
      </state>
    <property key="Button.margin" type="insets" value="0 0 0 0"/>
  </style>
  <bind style="button" type="region" key="Button"/>
      
      
  <style id="checkbox">
    	<imageIcon id="check_off" path="images/checkbox_off.png"/>
    	<imageIcon id="check_on" path="images/checkbox_on.png"/>
      <property key="CheckBox.icon" value="check_off"/>
      <state value="SELECTED">   
         <property key="CheckBox.icon" value="check_on"/>
	  </state>
  </style>
  <bind style="checkbox" type="region" key="Checkbox"/>	 
  
</synth>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -