[gparted] Use face skin colours exclusively for software block devices (#183)



commit 6617e6f3a38ccf5f1cc04696e39d6a795d1b949b
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Thu Jan 6 12:57:12 2022 +0000

    Use face skin colours exclusively for software block devices (#183)
    
    Currently the Face Skin colour range from the GNOME palette represent a
    mixture of file systems and software block devices:
        JFS          - Face Skin Medium
        LVM2_PV      - Face Skin Dark
        NILFS2       - Face Skin Shadow
        LINUX_SWRAID - Dark Brown
        ATARAID      - Dark Brown
    
    We are about to add recognition of bcache [1][2][3], another software
    block device.  Reorganise the colour assignments so that Face Skin
    colour range is exclusively used by types of software block devices and
    assign JFS and NILFS2 new colours.
        Face Skin Light  (#EFE0CD) -
        Face Skin Medium (#E0C39E) - BCACHE         [New assignment]
        Face Skin Dark   (#B39169) - LVM2_PV
        Face Skin Shadow (#826647) - LINUX_SWRAID   [New assignment]
        Brown Dark       (#5A4733) - ATARAID
    
    NILFS2 has flash friendly characteristics [4] so use Accent Red colours
    along with F2FS.
        Accent Red      (#DF421E) - F2FS
        Accent Red Dark (#990000) - NILFS2   [New assignment]
    
    Move JFS to a group with XFS and UFS.  The hue of the GNOME palette
    Accent Yellow Dark colour, as used by UFS, was more Orange compared to
    Accent Yellow and a bit too close to the Orange used by BTRFS.  So use
    the hue of the GNOME Accent Yellow and extend the range and assign like
    this.
        Accent Yellow             (#EED680) - XFS
        Accent Yellow Dark        (#D6B129) - JFS   [Updated hue.
                                                     New assignment]
        Accent Yellow Shadow      (#AA8F2C) - UFS   [New colour.
                                                     New assignment]
        Accent Yellow Dark Shadow (#826F2B) -       [New colour]
    
    [1] bcache
        https://bcache.evilpiepirate.org/
    [2] Linux kernel document: A block layer cache (bcache)
        https://www.kernel.org/doc/Documentation/bcache.txt
    [3] The Linux kernel user's and administrator's guide > A block layer
        cache (bcache)
        https://www.kernel.org/doc/html/latest/admin-guide/bcache.html
    [4] NILFS, Relative performance
        https://en.wikipedia.org/wiki/NILFS#Relative_performance
    
    Closes #183 - Basic support for bcache

 src/Utils.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Utils.cc b/src/Utils.cc
index e67b6d89..b59c22a0 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -166,26 +166,26 @@ Glib::ustring Utils::get_color(FSType fstype)
                case FS_FAT32:           return "#46A046";  // Accent Green
                case FS_HFS:             return "#D59FD4";  // Magenta Hilight [*]
                case FS_HFSPLUS:         return "#B173B0";  // Magenta Medium [*]
-               case FS_JFS:             return "#E0C39E";  // Face Skin Medium
+               case FS_JFS:             return "#D6B129";  // Accent Yellow Dark [+]
                case FS_LINUX_SWAP:      return "#C1665A";  // Red Medium
                case FS_LUKS:            return "#625B81";  // Purple Dark
                case FS_LVM2_PV:         return "#B39169";  // Face Skin Dark
                case FS_MINIX:           return "#9DB8D2";  // Blue Highlight
-               case FS_NILFS2:          return "#826647";  // Face Skin Shadow
+               case FS_NILFS2:          return "#990000";  // Accent Red Dark
                case FS_NTFS:            return "#70D2B1";  // Aquamarine Medium [*]
                case FS_REISER4:         return "#887FA3";  // Purple Medium
                case FS_REISERFS:        return "#ADA7C8";  // Purple Hilight
                case FS_UDF:             return "#105210";  // Accent Green Shadow [+]
                case FS_XFS:             return "#EED680";  // Accent Yellow
                case FS_APFS:            return "#874986";  // Magenta Dark [*]
-               case FS_ATARAID:         return "#5A4733";  // Dark brown [*]
+               case FS_ATARAID:         return "#5A4733";  // Brown Dark [+]
                case FS_BITLOCKER:       return "#494066";  // Purple Shadow
                case FS_GRUB2_CORE_IMG:  return "#666666";  // Dark Gray [*]
                case FS_ISO9660:         return "#D3D3D3";  // Light Gray [*]
-               case FS_LINUX_SWRAID:    return "#5A4733";  // Dark brown [*]
+               case FS_LINUX_SWRAID:    return "#826647";  // Face Skin Shadow
                case FS_LINUX_SWSUSPEND: return "#884631";  // Red Dark
                case FS_REFS:            return "#3EA281";  // Aquamarine Dark [*]
-               case FS_UFS:             return "#D1940C";  // Accent Yellow Dark
+               case FS_UFS:             return "#AA8F2C";  // Accent Yellow Shadow [+]
                case FS_ZFS:             return "#C26825";  // Orange Dark [*]
                case FS_USED:            return "#F8F8BA";  // Light Tan Yellow [*]
                case FS_UNUSED:          return "#FFFFFF";  // White


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]