src/Utils.h

changeset 98
1425bf3e18ed
parent 95
ef6048186cb3
child 102
b017001850df
--- a/src/Utils.h	Thu Mar 31 23:10:57 2022 +0200
+++ b/src/Utils.h	Fri Apr 01 14:58:57 2022 +0200
@@ -18,8 +18,34 @@
     double srm_to_ebc(double srm);
 
     QString hours_to_string(int hours);
+
+    /**
+     * @brief Map SRM color to RGB and return as QColor.
+     * @param srm The srm value.
+     * @return QColor
+     */
     QColor srm_to_color(int srm);
+
+    /**
+     * @brief Map EBC color to RGB and return as QColor.
+     * @param ebc The ebc value.
+     * @return QColor
+     */
     QColor ebc_to_color(int ebc);
+
+    /**
+     * @brief Map SRM color to a QString for stylesheets.
+     * @param srm The srm value.
+     * @return A QString with stylesheet colors.
+     */
+    QString srm_to_style(int ebc);
+
+    /**
+     * @brief Map EBC color to a QString for stylesheets.
+     * @param ebc The ebc value.
+     * @return A QString with stylesheet colors.
+     */
+    QString ebc_to_style(int srm);
 }
 
 #endif

mercurial