changed color of reiserfs from blue to purple highlight. + some cosmetics.

* src/Partition.cc: changed color of reiserfs from blue to purple highlight. + some cosmetics.
This commit is contained in:
Bart Hakvoort 2004-10-08 20:06:51 +00:00
parent bcb05b8540
commit ad93a3718b
2 changed files with 33 additions and 29 deletions

View File

@ -1,3 +1,7 @@
2004-10-08 Bart Hakvoort <gparted@users.sf.net>
* src/Partition.cc: changed color of reiserfs from blue to purple highlight. + some cosmetics.
2004-10-08 Bart Hakvoort <gparted@users.sf.net>
* include/Frame_Resizer_Base.h: removed inheritance from sigc::trackable. (this is already done by Glib::Object)

View File

@ -59,11 +59,11 @@ void Partition::Set_Unallocated( Sector sector_start, Sector sector_end, bool in
Glib::ustring Partition::Get_Color( const Glib::ustring & filesystem )
{ // very ugly, but somehow i can't figure out a more efficient way. must be lack of sleep or so... :-)
//purple teints
//blue teints
if ( filesystem == "ext2" ) return "#9DB8D2" ;
else if ( filesystem == "ext3" ) return "#7590AE" ;
//brown
//redbrown
else if ( filesystem == "linux-swap" ) return "#C1665A" ;
//greenisch stuff..
@ -71,8 +71,8 @@ Glib::ustring Partition::Get_Color( const Glib::ustring & filesystem )
else if ( filesystem == "fat32" ) return "#18D918" ;
else if ( filesystem == "ntfs" ) return "#42E5AC" ;
//blue
else if ( filesystem == "reiserfs" ) return "blue" ;
//purple something..
else if ( filesystem == "reiserfs" ) return "#ADA7C8" ;
//libparted can only detect these, i decided to "yellow them" :^)
else if ( filesystem == "HFS" ) return "yellow" ;
@ -84,7 +84,7 @@ Glib::ustring Partition::Get_Color( const Glib::ustring & filesystem )
else if ( filesystem == "unallocated" ) return "darkgrey";
else if ( filesystem == "extended" ) return "#7DFCFE" ;
//unknown filesystem ( damaged, or simply unknown )
//unknown filesystem ( damaged, unknown or simply no filesystem )
else return "black";
}