Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c8c6d6d4

Von Sven Donath vor mehr als 14 Jahren hinzugefügt

  • ID c8c6d6d4bb71e6265dbc25e65d4d75297b016455
  • Vorgänger c2b231c6
  • Nachfolger 0e1a25a7

XUL - Menu für Firefox/Prism: Stylesheet geändert.
Somit werden jetzt nur die Top-Menü-Beschriftungen vom Stylesheet gesteuert.
Das Aussehen der Menü-Unterpunkte wird vom GUI-Thema des OS des Anwenders bestimmt.
Gestestet unter Ubuntu 9.10 und Windows Vista Home.
Nochmal Änderungen an toolbarbutton tooltips gemacht. Werden trotzdem nicht angezeigt!?
Höhenbeschränkung der Suchbox aufgehoben, das Feld war zu niedrig unter Ubuntu.

Unterschiede anzeigen:

xslt/style1.css
1
/* toolbar style */
1 2
toolbar{
2 3
 -moz-appearance:none !important;
3 4
 background: url('../image/fade.png');
4 5
 border-bottom:1px solid black;
5
 border-top:1px solid black
6
}
7
splitter{
8
 -moz-appearance:none !important;
9
 background:white url('../image/fade.png') no-repeat !important;
10
 border:0px
11
}
12
iframe{
13
 border-left:1px solid black !important
14 6
}
15 7

  
16 8
/* sidebar styles */
......
20 12
 padding-top:2px;
21 13
 background: white url('../image/fade.png') repeat-x;
22 14
}
15

  
23 16
#sidebar{
24 17
 background-image: url('../image/fade.png');
25 18
 max-width:450px;
......
35 28
 background: url('../image/bg_titel.gif');
36 29
 border:0px
37 30
}
31

  
38 32
menu, 
39 33
menuitem{
40 34
 font:12px Arial;
41 35
}
42
menu menuitem,
43
menu menu{
44
 padding:2px
45
}
46
menubar menu,
47
menubar menuitem{
36

  
37
menubar menu{
48 38
 -moz-appearance: none !important;
49
 color:white
39
 color:white;
40
 background: url('../image/bg_titel.gif');
50 41
}
51
menubar menu:hover,
52
menubar menuitem:hover{
42

  
43
menubar menu:hover{
53 44
 -moz-appearance:none !important;
54
 background:lightblue;
55
 color:red
56
}
57
menu menu,
58
menu menuitem{
59
 -moz-appearance: none !important;
60
 color:black
45
 background:#4466cc;
46
 color:yellow;
61 47
}
62
menu menu:hover,
63
menu menuitem:hover{
48

  
49
/* are splitter & iframe in use currently? */
50
splitter{
64 51
 -moz-appearance:none !important;
65
 background:lightgrey;
66
 color:red
52
 background:white url('../image/fade.png') no-repeat !important;
53
 border:0px;
54
}
55
iframe{
56
 border-left:1px solid black !important;
67 57
}
xslt/xulmenu.xsl
253 253
<!-- ***************************************************************************  -->
254 254

  
255 255
<!-- special buttons ( logout , print, open new window )
256
The tooltips, like tooltip="Neues Fenster", do not appear in my Firefox/Prism browsers. Why?
256
The tooltips, like tooltiptext="Neues Fenster", do not appear in my Firefox/Prism browsers. Why?
257
https://developer.mozilla.org/en/XUL_Tutorial/Popup_Menus
258
https://developer.mozilla.org/en/XUL/Attribute/tooltiptext
257 259
****************************************************************************  -->
258 260
<xsl:template name="specialbuttons">
259
  <toolbarbutton image="image/icons/24x24/Batch Printing.png" tooltip="Drucken" oncommand="PrintW(event)"/>
260
  <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltip="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
261
  <toolbarbutton label="Logout" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)">
262
    <image src="image/icons/24x24/Programm--Logout.png" width="24" height="24" />
263
  </toolbarbutton>
264
<toolbarseparator/>
265
  <toolbarbutton image="image/icons/24x24/leftarrow_24.png" tooltip="Schritt zurück" oncommand="MyGoBack()"/>
266
  <toolbarbutton image="image/icons/24x24/rightarrow_24.png" tooltip="Schritt vor" oncommand="MyGoForward()"/>
261
    <toolbarbutton image="image/icons/24x24/Batch Printing.png" oncommand="PrintW(event)" tooltiptext="Drucken"/>
262
    <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltiptext="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
263
    <toolbarbutton image="image/icons/24x24/Programm--Logout.png" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)" tooltiptext="Abmelden"/>
264
  <toolbarseparator/>
265
    <toolbarbutton image="image/icons/24x24/leftarrow_24.png" tooltiptext="Schritt zurück" oncommand="MyGoBack()"/>
266
    <toolbarbutton image="image/icons/24x24/rightarrow_24.png" tooltiptext="Schritt vor" oncommand="MyGoForward()"/>
267 267
</xsl:template>
268 268
<!-- ***************************************************************************  -->
269 269

  
......
273 273
<xsl:template name="searchbox">
274 274
<vbox style="padding-top:2px">
275 275
  <hbox>
276

  
277
    <textbox height="22px" style="font-size:12px;margin-right:0px" width="200px" id="searchboxtext" onkeypress="checkEnter(event)"/>
278
<toolbarbutton type="toolbar" width="20" height="20" style="padding:5px !important"
279
image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
276
    <textbox style="font-size:11px;margin-right:0px" width="200px" id="searchboxtext" onkeypress="checkEnter(event)"/> 
277
    <toolbarbutton type="toolbar" width="20" height="20" style="padding:5px !important" image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
280 278
</hbox>
281 279

  
282 280
</vbox>

Auch abrufbar als: Unified diff