summaryrefslogtreecommitdiff
path: root/baserender.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-07-14 15:57:50 +0200
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-07-14 15:57:50 +0200
commit2ad9f95b7b23c222fff5fc6566d711e2f8d4f595 (patch)
tree23ac2ea76ac10dde6d345c2d133d637c43733369 /baserender.c
parent321756bcd76a24fc0024432a076f6042ddce9bd2 (diff)
downloadskin-flatplus-2ad9f95b7b23c222fff5fc6566d711e2f8d4f595.tar.gz
skin-flatplus-2ad9f95b7b23c222fff5fc6566d711e2f8d4f595.tar.bz2
add new chart icons
Diffstat (limited to 'baserender.c')
-rw-r--r--baserender.c44
1 files changed, 29 insertions, 15 deletions
diff --git a/baserender.c b/baserender.c
index 1d7cb074..e3325233 100644
--- a/baserender.c
+++ b/baserender.c
@@ -201,23 +201,37 @@ void cFlatBaseRender::TopBarEnableDiskUsage(void) {
}
int ChartDiskUsage = DiskUsage;
- if( Config.DiskUsageFree == 1 )
- ChartDiskUsage = 100 - DiskUsage;
-
cString iconName("chart1");
- if( ChartDiskUsage > 14 )
- iconName = "chart2";
- if( ChartDiskUsage > 28 )
- iconName = "chart3";
- if( ChartDiskUsage > 42 )
- iconName = "chart4";
- if( ChartDiskUsage > 56 )
- iconName = "chart5";
- if( ChartDiskUsage > 70 )
- iconName = "chart6";
- if( ChartDiskUsage > 84 )
- iconName = "chart7";
+ if( Config.DiskUsageFree == 1 ) {
+ ChartDiskUsage = 100 - DiskUsage;
+ iconName = "chart1b";
+ if( ChartDiskUsage > 14 )
+ iconName = "chart2b";
+ if( ChartDiskUsage > 28 )
+ iconName = "chart3b";
+ if( ChartDiskUsage > 42 )
+ iconName = "chart4b";
+ if( ChartDiskUsage > 56 )
+ iconName = "chart5b";
+ if( ChartDiskUsage > 70 )
+ iconName = "chart6b";
+ if( ChartDiskUsage > 84 )
+ iconName = "chart7b";
+ } else {
+ if( ChartDiskUsage > 14 )
+ iconName = "chart2";
+ if( ChartDiskUsage > 28 )
+ iconName = "chart3";
+ if( ChartDiskUsage > 42 )
+ iconName = "chart4";
+ if( ChartDiskUsage > 56 )
+ iconName = "chart5";
+ if( ChartDiskUsage > 70 )
+ iconName = "chart6";
+ if( ChartDiskUsage > 84 )
+ iconName = "chart7";
+ }
TopBarSetTitleExtra(extra1, extra2);
TopBarSetExtraIcon(iconName);
}