From 46a0ff4a025134f6952f0ace81c5dfd166267a79 Mon Sep 17 00:00:00 2001 From: yomguy <> Date: Fri, 4 Jun 2010 07:39:23 +0000 Subject: [PATCH] rename status infos, rounding skin --- css/telecaster.css | 8 +++++++- telecaster.py | 2 +- webview.py | 22 +++++++++++----------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/css/telecaster.css b/css/telecaster.css index e308509..95bb103 100644 --- a/css/telecaster.css +++ b/css/telecaster.css @@ -5,6 +5,9 @@ div.header { padding: 0.5em; height: 42px; font: 0.8125em/1em Verdana, sans-serif; + -moz-border-radius: 25px 0 0 0; + -webkit-border-radius: 25px 0 0 0; + border-radius: 25px 0 0 0; } div.title_main { @@ -38,6 +41,9 @@ div.tools { background-color: #030250; padding:0.5em; margin: 1.5em 0em 0em 0em; height: 32px; + -moz-border-radius: 0 0 25px 0; + -webkit-border-radius: 0 0 25px 0; + border-radius: 0 0 25px 0; } div.colophon { background-color: transparent; @@ -56,7 +62,7 @@ div.title { color: #FFFFFF; padding: 0.5em; line-height: 10px; - font: 0.8125em/1em Verdana, sans-serif; + font: 1em/1em Verdana, sans-serif; } div.hardware { diff --git a/telecaster.py b/telecaster.py index de0e593..c520c52 100755 --- a/telecaster.py +++ b/telecaster.py @@ -35,7 +35,7 @@ # Author: Guillaume Pellerin """ -version = '0.3.8' +version = '0.3.9' # Only for Unix and Linux systems import os diff --git a/webview.py b/webview.py index db645be..5891adb 100644 --- a/webview.py +++ b/webview.py @@ -162,9 +162,9 @@ class WebView(FieldStorage): print "" def hardware_data(self): - jackd_pid = get_pid('jackd ', self.uid) + jackd_pid = get_pid('jackd', self.uid) if jackd_pid == []: - jackd_pid = get_pid('/usr/bin/jackdbus ', self.uid) + jackd_pid = get_pid('jackdbus', self.uid) self.acpi.update() self.power_state = self.acpi.charging_state() if self.power_state == 0: @@ -188,28 +188,28 @@ class WebView(FieldStorage): else: percent = self.acpi.percent() if percent < 10: - batt_charge = ''+str(percent)+' %' + batt_charge = ''+str(percent)+' %' else: batt_charge = ''+str(percent)+' %' if self.ip == 'localhost': - ip_info = ''+self.ip+'' + ip_info = ''+self.ip+'' else: ip_info = ''+self.ip+'' if jackd_pid == []: - jackd_info = 'éteint' + jackd_info = 'OFF' else: - jackd_info = 'démarré (jack)' + jackd_info = 'On' print "
" - print "
Informations matérielles
" + print "
Status
" print "" - print "" + print "" print "" % power_info #print "" #print "" % batt_info - print "" + print "" print "" % batt_charge #print "" #print "" % self.acpi.estimated_lifetime() @@ -221,9 +221,9 @@ class WebView(FieldStorage): print "" % self.acpi.temperature(1) except: pass - print "" + print "" print "" % ip_info - print "" + print "" print "" % jackd_info print "
Alimentation :
Power : %s
Etat batterie :%s
Capacité batterie :
Battery charge : %s
Estimation durée batterie :%s
Temp core 2 : %s
Addresse IP :
IP address : %s
Serveur audio :
JACK audio server : %s
" if self.writing: -- 2.39.5