Removed lighter.css and moved it to the default layout

This commit is contained in:
Maran 2012-07-24 14:59:41 +02:00
parent 7ba5f07629
commit f4218d441e
3 changed files with 50 additions and 85 deletions

View File

@ -1,78 +0,0 @@
#main_window
{
background: qlineargradient(x1: 0, y1: 0, x2:0,y2:1, stop: 0 white , stop: 1 #E8E8E8);
}
MiniWindow QPushButton {
color: #777;
border: 1px solid #CCC;
border-radius: 0px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 white, stop: 1 #E6E6E6);
min-height: 25px;
min-width: 30px;
}
#send_button{
color: #E5F2FF;
border: 1px solid #3786E6;
border-radius: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #72B2F8, stop: 1 #3484E6);
min-width: 80px;
min-height: 23px;
padding: 2px;
}
#send_button:disabled{
color: #D3E8FE;
border: 1px solid #6DAEF7;
border-radius: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #A5CFFA, stop: 1 #72B2F8);
min-width: 80px;
min-height: 23px;
padding: 2px;
}
#address_input[readOnly=true], #amount_input[readOnly=true]
{
color: #ABABAB;
padding: 5px;
border-radius: 4px;
border: 1px solid #AAA9A9;
width: 225px;
margin-top: 4px;
}
#address_input[readOnly=false], #amount_input[readOnly=false]
{
padding: 2px;
border: 1px solid #AAA9A9;
font: normal;
color: #424242;
border-radius: 4px;
font-size: 95%;
width: 225px;
margin-top: 4px;
}
#valid_address::indicator
{
width: 24px;
height: 24px;
margin-top: 2px;
}
#valid_address::indicator:checked
{
image: url(icons/confirmed.png);
}
#valid_address::indicator:unchecked
{
image: url(icons/unconfirmed.png);
}
#balance_label
{
color: #333;
}

View File

@ -1,23 +1,67 @@
#main_window
{
background-image: url(background.png);
background: qlineargradient(x1: 0, y1: 0, x2:0,y2:1, stop: 0 white , stop: 1 #E8E8E8);
}
MiniWindow QPushButton {
color: #777;
border: 1px solid #CCC;
border-radius: 0px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 white, stop: 1 #E6E6E6);
min-height: 25px;
min-width: 30px;
}
#send_button{
color: #E5F2FF;
border: 1px solid #3786E6;
border-radius: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #72B2F8, stop: 1 #3484E6);
min-width: 80px;
min-height: 23px;
padding: 2px;
}
#send_button:disabled{
color: #D3E8FE;
border: 1px solid #6DAEF7;
border-radius: 4px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #A5CFFA, stop: 1 #72B2F8);
min-width: 80px;
min-height: 23px;
padding: 2px;
}
#address_input[readOnly=true], #amount_input[readOnly=true]
{
font: italic;
color: gray;
color: #ABABAB;
padding: 5px;
border-radius: 4px;
border: 1px solid #AAA9A9;
width: 225px;
margin-top: 4px;
}
#address_input[readOnly=false], #amount_input[readOnly=false]
{
padding: 2px;
border: 1px solid #AAA9A9;
font: normal;
color: black;
color: #424242;
border-radius: 4px;
font-size: 95%;
width: 225px;
margin-top: 4px;
}
#valid_address::indicator
{
width: 24px;
height: 24px;
margin-top: 2px;
}
#valid_address::indicator:checked
{
@ -30,6 +74,5 @@
#balance_label
{
color: white;
color: #333;
}

View File

@ -56,7 +56,7 @@ class ElectrumGui:
# change the behaviour of rsrc(...)
self.old_path = QDir.currentPath()
cd_data_dir()
with open(rsrc("lighter.css")) as style_file:
with open(rsrc("style.css")) as style_file:
self.app.setStyleSheet(style_file.read())
def main(self, url):