Browse Source

Removed lighter.css and moved it to the default layout

283
Maran 13 years ago
parent
commit
f4218d441e
  1. 78
      data/lighter.css
  2. 55
      data/style.css
  3. 2
      lib/gui_lite.py

78
data/lighter.css

@ -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;
}

55
data/style.css

@ -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;
}

2
lib/gui_lite.py

@ -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):

Loading…
Cancel
Save