Browse Source

- Improved tab look

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
892bb4c432
  1. BIN
      src/Icons/skin/tabs.gif
  2. 1
      src/icons.qrc
  3. 2
      src/update_qrc_files.py
  4. 47
      src/webui/css/mootabs1.2.css
  5. 6
      src/webui/index.html

BIN
src/Icons/skin/tabs.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

1
src/icons.qrc

@ -102,6 +102,7 @@
<file>Icons/skin/seeding.png</file> <file>Icons/skin/seeding.png</file>
<file>Icons/skin/settings.png</file> <file>Icons/skin/settings.png</file>
<file>Icons/skin/stalled.png</file> <file>Icons/skin/stalled.png</file>
<file>Icons/skin/tabs.gif</file>
<file>Icons/skin/url.png</file> <file>Icons/skin/url.png</file>
</qresource> </qresource>
</RCC> </RCC>

2
src/update_qrc_files.py

@ -71,7 +71,7 @@ for root, dirs, files in os.walk('Icons'):
if 'skin_unused' in dirs: if 'skin_unused' in dirs:
dirs.remove('skin_unused') dirs.remove('skin_unused')
for file in files: for file in files:
if splitext(file)[-1] in ('.png', '.jpg'): if splitext(file)[-1] in ('.png', '.jpg', '.gif'):
icons_list.append(join(root, file)) icons_list.append(join(root, file))
output = '''<!DOCTYPE RCC><RCC version="1.0"> output = '''<!DOCTYPE RCC><RCC version="1.0">

47
src/webui/css/mootabs1.2.css

@ -1,24 +1,51 @@
.toolbarTabs {
padding: 0 5px 2px 2px;
background: url(../images/skin/tabs.gif) repeat-x;
background-position: left -70px;
overflow: visible;
}
.mootabs_title { .mootabs_title {
list-style-image: none; padding-top: 1px;
list-style-type: none; list-style: none;
margin: 0px; margin: 0;
padding: 0px; padding: 0;
height: 24px; line-height: 16px;
font-size: 11px;
} }
.mootabs_title li { .mootabs_title li {
display: block;
float: left; float: left;
background-color: #ddd; margin: 0 0 5px 0;
padding: 2px 8px 2px 8px;
margin-right: 2px;
cursor: pointer; cursor: pointer;
height: 24px; background: url(../images/skin/tabs.gif) repeat-x;
background-position: left -35px;
} }
.mootabs_title li.active { .mootabs_title li.active {
background-color: #f1f1f1; background: url(../images/skin/tabs.gif) repeat-x;
background-position: left 0;
}
.mootabs_title li a {
display: block;
margin-left: 8px;
padding: 6px 16px 5px 10px;
text-align: center;
font-weight: normal;
color: #141414;
background: url(../images/skin/tabs.gif) repeat-x;
background-position: right -35px;
}
.mootabs_title li.active a {
color: #141414;
font-weight: bold;
background: url(../images/skin/tabs.gif) repeat-x;
background-position: right 0;
} }
.mootabs_panel { .mootabs_panel {

6
src/webui/index.html

@ -65,10 +65,10 @@
</div> </div>
</div> </div>
<div id="myTabs"> <div id="myTabs" class="toolbarTabs">
<ul class="mootabs_title"> <ul class="mootabs_title">
<li title="Tab1">Downloads</li> <li title="Tab1"><a>Downloads</a></li>
<li title="Tab2">Uploads</li> <li title="Tab2"><a>Uploads</a></li>
</ul> </ul>
<div id="mochaPageWrapper"> <div id="mochaPageWrapper">
<div id="mochaPage"> <div id="mochaPage">

Loading…
Cancel
Save