From 2d070fa3bad8b8a90f2844c351b4ac9d40940461 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Thu, 13 Aug 2026 13:09:22 +0100 Subject: [PATCH] =?UTF-8?q?Fuel=20colours:=20align=20with=20wheel=20palett?= =?UTF-8?q?e=20=E2=80=94=20Unleaded=20#30D158,=20Premium=20#FFD60A,=20Dies?= =?UTF-8?q?el=20#64D2FF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FuelBoard/StationsView.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/FuelBoard/StationsView.swift b/FuelBoard/StationsView.swift index 9affa12..f60fa39 100644 --- a/FuelBoard/StationsView.swift +++ b/FuelBoard/StationsView.swift @@ -190,19 +190,20 @@ extension FuelType { } } - /// Pump-handle colour convention (UK): green = unleaded, purple = premium, - /// dark grey = diesel. Used for the fuel-type tab icons and the title icon. + /// Fuel colour wheel (user-chosen palette): green = unleaded (#30D158), + /// yellow = premium (#FFD60A), cyan = diesel (#64D2FF). Used for the + /// fuel-type tab icons and the title icon. var tintColor: Color { switch self { - case .e10: return .green - case .e5: return .purple - case .diesel: return Color(red: 0.35, green: 0.38, blue: 0.42) + case .e10: return Color(red: 48/255.0, green: 209/255.0, blue: 88/255.0) // #30D158 + case .e5: return Color(red: 255/255.0, green: 214/255.0, blue: 10/255.0) // #FFD60A + case .diesel: return Color(red: 100/255.0, green: 210/255.0, blue: 255/255.0) // #64D2FF } } } /// Fuel-type selector styled like a segmented control, with a coloured pump -/// icon per fuel (green = unleaded, purple = premium, grey = diesel). Built +/// icon per fuel (green = unleaded, yellow = premium, cyan = diesel). Built /// custom because the native `.segmented` picker tints every segment the same /// accent colour — it can't show per-fuel pump colours. Shared by the Stations /// and Favourites tabs.