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:
parent
bcb05b8540
commit
ad93a3718b
|
@ -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>
|
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)
|
* include/Frame_Resizer_Base.h: removed inheritance from sigc::trackable. (this is already done by Glib::Object)
|
||||||
|
|
|
@ -36,18 +36,18 @@ void Partition::Set( const Glib::ustring & partition,
|
||||||
const bool inside_extended,
|
const bool inside_extended,
|
||||||
const bool busy )
|
const bool busy )
|
||||||
{
|
{
|
||||||
this->partition = partition;
|
this ->partition = partition;
|
||||||
this->partition_number = partition_number;
|
this ->partition_number = partition_number;
|
||||||
this->type = type;
|
this ->type = type;
|
||||||
this->filesystem = filesystem;
|
this ->filesystem = filesystem;
|
||||||
this->sector_start = sector_start;
|
this ->sector_start = sector_start;
|
||||||
this->sector_end = sector_end;
|
this ->sector_end = sector_end;
|
||||||
this->sectors_used = sectors_used;
|
this ->sectors_used = sectors_used;
|
||||||
sectors_used != -1 ? this->sectors_unused = ( sector_end - sector_start) - sectors_used : this->sectors_unused = -1 ;
|
sectors_used != -1 ? this ->sectors_unused = ( sector_end - sector_start) - sectors_used : this ->sectors_unused = -1 ;
|
||||||
this->color.set( Get_Color( filesystem ) );
|
this ->color.set( Get_Color( filesystem ) );
|
||||||
this->color_string = Get_Color( filesystem );
|
this ->color_string = Get_Color( filesystem );
|
||||||
this->inside_extended = inside_extended;
|
this ->inside_extended = inside_extended;
|
||||||
this->busy = busy;
|
this ->busy = busy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Partition::Set_Unallocated( Sector sector_start, Sector sector_end, bool inside_extended )
|
void Partition::Set_Unallocated( Sector sector_start, Sector sector_end, bool inside_extended )
|
||||||
|
@ -59,32 +59,32 @@ void Partition::Set_Unallocated( Sector sector_start, Sector sector_end, bool in
|
||||||
|
|
||||||
Glib::ustring Partition::Get_Color( const Glib::ustring & filesystem )
|
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... :-)
|
{ // 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" ;
|
if ( filesystem == "ext2" ) return "#9DB8D2" ;
|
||||||
else if ( filesystem == "ext3" ) return "#7590AE";
|
else if ( filesystem == "ext3" ) return "#7590AE" ;
|
||||||
|
|
||||||
//brown
|
//redbrown
|
||||||
else if ( filesystem == "linux-swap" ) return "#C1665A" ;
|
else if ( filesystem == "linux-swap" ) return "#C1665A" ;
|
||||||
|
|
||||||
//greenisch stuff..
|
//greenisch stuff..
|
||||||
else if ( filesystem == "fat16" ) return "green" ;
|
else if ( filesystem == "fat16" ) return "green" ;
|
||||||
else if ( filesystem == "fat32" ) return "#18D918";
|
else if ( filesystem == "fat32" ) return "#18D918" ;
|
||||||
else if ( filesystem == "ntfs" ) return "#42E5AC";
|
else if ( filesystem == "ntfs" ) return "#42E5AC" ;
|
||||||
|
|
||||||
//blue
|
//purple something..
|
||||||
else if ( filesystem == "reiserfs" ) return "blue" ;
|
else if ( filesystem == "reiserfs" ) return "#ADA7C8" ;
|
||||||
|
|
||||||
//libparted can only detect these, i decided to "yellow them" :^)
|
//libparted can only detect these, i decided to "yellow them" :^)
|
||||||
else if ( filesystem == "HFS" ) return "yellow" ;
|
else if ( filesystem == "HFS" ) return "yellow" ;
|
||||||
else if ( filesystem == "JFS" ) return "yellow" ;
|
else if ( filesystem == "JFS" ) return "yellow" ;
|
||||||
else if ( filesystem == "UFS" ) return "yellow" ;
|
else if ( filesystem == "UFS" ) return "yellow" ;
|
||||||
else if ( filesystem == "XFS" ) return "yellow" ;
|
else if ( filesystem == "XFS" ) return "yellow" ;
|
||||||
|
|
||||||
//darkgrey and ligthblue
|
//darkgrey and ligthblue
|
||||||
else if ( filesystem == "unallocated" ) return "darkgrey" ;
|
else if ( filesystem == "unallocated" ) return "darkgrey";
|
||||||
else if ( filesystem == "extended" ) return "#7DFCFE" ;
|
else if ( filesystem == "extended" ) return "#7DFCFE" ;
|
||||||
|
|
||||||
//unknown filesystem ( damaged, or simply unknown )
|
//unknown filesystem ( damaged, unknown or simply no filesystem )
|
||||||
else return "black";
|
else return "black";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue