Changeset 15000
- Timestamp:
- 03/02/10 16:31:41 (2 years ago)
- Location:
- trunk/Xul_Core/content/scenariCore/widgets/matrix
- Files:
-
- 3 edited
-
matrix.xbl.css (modified) (8 diffs)
-
matrix.xbl.xml (modified) (1 diff)
-
slotContents.xbl.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.css
r14998 r15000 69 69 70 70 hbox[anonid=header]{ 71 min-height:2 5px;71 min-height:20px; 72 72 } 73 73 hbox[anonid=tabsContainer]:empty{ … … 105 105 border-bottom: 1px solid ThreeDShadow; 106 106 border-right: 1px solid ThreeDShadow; 107 border-left: 1px solid transparent;108 padding: 3px 4px 2px 4px;107 border-left: 0px; 108 padding: 0px; 109 109 max-width: -moz-min-content; 110 110 } 111 111 112 slotTab:FIRST-CHILD, 113 slotTabContent:FIRST-CHILD{ 114 -moz-border-radius-topleft: 3px; 112 slotTab.firstTab, 113 slotTabContent.firstTab{ 114 -moz-border-radius-topleft: 4px; 115 } 116 117 slotTab.justBeforeSelected, 118 slotTabContent.justBeforeSelected{ 119 border-right: 0px; 115 120 } 116 121 … … 120 125 background: -moz-linear-gradient(top, threedhighlight,threedface); 121 126 border-bottom: 1px solid threedface; 122 } 127 border-right: 1px solid ThreeDShadow; 128 border-left: 1px solid ThreeDShadow; 129 border-top: 1px solid ThreeDShadow; 130 -moz-border-radius-topleft: 4px; 131 -moz-border-radius-topright: 4px; 132 margin-top:-1px; 133 } 134 slotTab.selectedTab.firstTab, 135 slotTabContent.selectedTab.firstTab{ 136 border-left: 0px; 137 } 138 123 139 124 140 slotTab:focus, … … 132 148 } 133 149 134 slotTab .tabLabel ,135 slotTabContent .tabLabel {150 slotTab .tabLabelTxt, 151 slotTabContent .tabLabelTxt{ 136 152 padding-left:0px; 137 153 padding-right:0px; … … 143 159 padding:0px; 144 160 } 145 146 147 161 slotTab .tabLabel, 162 slotTabContent .tabLabel{ 163 padding: 3px 4px 2px 4px; 164 } 165 slotTab .tabTools, 166 slotTabContent .tabTools{ 167 visibility:hidden; 168 margin:0px; 169 padding: 0px; 170 } 171 slotTab:hover .tabTools, 172 slotTabContent:hover .tabTools { 173 visibility:visible; 174 } 175 slotTab *[anonid=tabToolBar], 176 slotTabContent *[anonid=tabToolBar]{ 177 padding: 1px 2px 1px 4px; 178 border-left: 1px solid ThreeDShadow; 179 border-bottom: 1px solid ThreeDShadow; 180 -moz-border-radius-bottomleft: 4px; 181 opacity:0.5; 182 background: -moz-linear-gradient(top, threedhighlight,threedface); 183 } 184 slotTab.selectedTab *[anonid=tabToolBar], 185 slotTabContent.selectedTab *[anonid=tabToolBar]{ 186 -moz-border-radius-topright: 4px; 187 } 188 slotTab *[anonid=tabToolBar]:hover, 189 slotTabContent *[anonid=tabToolBar]:hover{ 190 opacity:0.9; 191 } 148 192 149 193 arrowscrollbox[anonid=tabsBar]{ … … 163 207 border: 1px solid ThreeDShadow; 164 208 } 165 toolbarbutton[anonid=maxBtn] toolbarbutton-icon{ 166 margin:left:3px; 167 } 209 210 /* ======================== maxBtn ======================== */ 168 211 toolbarbutton[anonid=maxBtn] { 169 212 -moz-appearance: none; … … 175 218 width: 20px; 176 219 } 220 toolbarbutton[anonid=maxBtn] .toolbarbutton-icon{ 221 opacity:0.5; 222 } 177 223 toolbarbutton[anonid=maxBtn]:hover { 178 224 -moz-image-region: rect(0px, 32px, 16px, 16px); 179 225 } 226 toolbarbutton[anonid=maxBtn]:hover .toolbarbutton-icon{ 227 opacity:1; 228 } 180 229 toolbarbutton[anonid=maxBtn]:active { 181 230 -moz-image-region: rect(0px, 48px, 16px, 32px); 182 231 } 183 232 toolbarbutton[anonid=maxBtn]:active .toolbarbutton-icon{ 233 opacity:1; 234 } 184 235 *[BlockMax=true] toolbarbutton[anonid=maxBtn] { 185 236 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkNorm.png"); 186 237 } 187 238 239 /* ======================== closeBtn ======================== */ 188 240 toolbarbutton[anonid=closeBtn] { 189 241 list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/close-button.png"); … … 194 246 width: 16px; 195 247 height: 16px; 196 visibility:hidden;197 }198 slotTab:hover toolbarbutton[anonid=closeBtn],199 slotTabContent:hover toolbarbutton[anonid=closeBtn] {200 visibility:visible;201 248 } 202 249 .selectedTab>toolbarbutton[anonid=closeBtn]{ -
trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml
r14998 r15000 620 620 <content align="center"> 621 621 <children> 622 <xul:image class="tabIcon" xbl:inherits="src=image"/> 623 <xul:label class="tabLabel small-margin" xbl:inherits="value=label"/> 624 <xul:spacer flex="1"/> 622 <xul:stack> 623 <xul:hbox class="tabLabel"> 624 <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 625 <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label"/> 626 </xul:hbox> 627 <xul:hbox class="tabTools" pack="end" align="top"> 628 <xul:hbox anonid="tabToolBar"> 629 <xul:toolbarbutton anonid="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 630 </xul:hbox> 631 </xul:hbox> 632 </xul:stack> 625 633 </children> 626 <xul:toolbarbutton anonid="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/>627 634 </content> 628 635 <implementation> -
trunk/Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml
r14998 r15000 52 52 <xul:arrowscrollbox anonid="tabsBar" flex="1" orient="horizontal"> 53 53 <xul:hbox anonid="tabsContainer" flex="1"/> 54 <xul:spacer anonid="tabsBarSpace" flex="100 "/>54 <xul:spacer anonid="tabsBarSpace" flex="10000"/> 55 55 </xul:arrowscrollbox> 56 56 <!-- TODO Historique … … 103 103 <!-- Interne : onglets destinés pour le slotContents --> 104 104 <binding id="slotTabContent" extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#slotTab"> 105 <content align=" center" flex="1">105 <content align="top"> 106 106 <children> 107 <xul:image class="tabIcon" xbl:inherits="src=image"/> 108 <xul:label class="tabLabel small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> 109 <xul:spacer flex="1" style="background-color: green;"/> 107 <xul:stack> 108 <xul:hbox class="tabLabel"> 109 <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 110 <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> 111 </xul:hbox> 112 <xul:hbox class="tabTools" pack="end" align="top"> 113 <xul:hbox anonid="tabToolBar"> 114 <xul:toolbarbutton anonid="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/> 115 </xul:hbox> 116 </xul:hbox> 117 </xul:stack> 110 118 </children> 111 <xul:toolbarbutton anonid="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/>112 119 </content> 113 120 </binding>
Note: See TracChangeset
for help on using the changeset viewer.