[gparted/recognise-apfs: 4/8] Switch HFS and HFS Plus colours to a magenta range (#23)



commit 893b67e2b8c83f5675b7881427ccbda1bafa5167
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat Nov 10 11:17:07 2018 +0000

    Switch HFS and HFS Plus colours to a magenta range (#23)
    
    Currently Linux Swap, Linux Suspend, and HFS use reds from the GNOME
    32-colour palette with HFS Plus using serene red outside that palette.
        HFSPLUS       - Serene Red
        HFS           - Red Hilight
        LINUX_SWAP    - Red Medium
        LINUX_SUSPEND - Red Dark
                      - Red Shadow
    
    Apple have a new file system, APFS (Apple File System), which is a
    successor to HFS Plus [1][2].  With HFS Plus using a colour outside the
    GNOME 32-colour palette and there not being enough distinct reds
    available for a new file system, create a new range of magenta colours
    which fit with the GNOME palette and use them for the group of Apple
    file systems.
        Magenta Hilight (#D59FD4) - HFS
        Magenta Medium  (#B173B0) - HFSPLUS
        Magenta Dark    (#874986) - APFS
        Magenta Shadow  (#662C64) -
    
    This commit just moves HFS and HFS Plus to their new magenta colours.
    
    [1] About Apple File System
        https://developer.apple.com/documentation/foundation/file_system/about_apple_file_system
    
        "Overview
        Apple File System replaces HFS Plus as the default file system for
        iOS 10.3 and later, and for macOS High Sierra and later.  Apple File
        System offers improved file system fundamentals as well as several
        new features, including cloning, snapshots, space sharing, fast
        directory sizing, atomic safe-save, and sparse files.
        "
    
    [2] Apple File System Reference
        https://developer.apple.com/support/apple-file-system/Apple-File-System-Reference.pdf
    
        "About Apple File System
        Apple File System is the default file format used on Apple
        platforms.  Apple File System is the successor to HFS Plus, so some
        aspects of its design intentionally follow HFS Plus to enable data
        migration from HFS Plus to Apple File System.  Other aspects of its
        design address limitations with HFS Plus and enable features such as
        cloning files, snapshots, encryption, and sharing free space between
        volumes.
        "
    
    Closes #23 - GParted doesn't detect APFS (Apple File system)

 src/Utils.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Utils.cc b/src/Utils.cc
index 05511ef0..80e5704e 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -103,8 +103,8 @@ Glib::ustring Utils::get_color( FSType filesystem )
                case FS_F2FS:            return "#DF421E";  // Accent Red
                case FS_FAT16:           return "#60C160";  // Accent Green Hilight [+]
                case FS_FAT32:           return "#46A046";  // Accent Green
-               case FS_HFS:             return "#E0B6AF";  // Red Hilight
-               case FS_HFSPLUS:         return "#C0A39E";  // Serene Red [*]
+               case FS_HFS:             return "#D59FD4";  // Magenta Hilight [*]
+               case FS_HFSPLUS:         return "#B173B0";  // Magenta Medium [*]
                case FS_JFS:             return "#E0C39E";  // Face Skin Medium
                case FS_LINUX_SWAP:      return "#C1665A";  // Red Medium
                case FS_LUKS:            return "#625B81";  // Purple Dark


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