gui : Allow changing vertical alignment of status bar icons

- If the var TW_STATUS_ICONS_ALIGN can be set to:
   1) 'center' or '2' to center-align the icons/text (vertically)
   2) 'bottom' or '3' to bottom-align the icons/text (vertically)
  ( Value calculated by utilizing statusbar height & size of font_m ).
- If set to anything else or not set at all, it falls back to twrp's
  old behaviour of top-aligning the status bar icons.

Change-Id: I1b292221f3c34bbac20233595fbc0958d4aa4cc1
Signed-off-by: Yillié <yilliee@protonmail.com>
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
(cherry picked from commit fcbaf814f3d46e21ac7ffa77f4883228468c1d2a)
diff --git a/gui/libguitwrp_defaults.go b/gui/libguitwrp_defaults.go
index 4ba6491..290be25 100644
--- a/gui/libguitwrp_defaults.go
+++ b/gui/libguitwrp_defaults.go
@@ -150,10 +150,17 @@
 				}
 			}
 
+			alignProp := "%status_topalign_header_y%"
+			if strings.Trim(getMakeVars(ctx, "TW_STATUS_ICONS_ALIGN"), "\"") == "center" || strings.Trim(getMakeVars(ctx, "TW_STATUS_ICONS_ALIGN"), "\"") == "2" {
+				alignProp = "%status_centeralign_header_y%"
+			} else if strings.Trim(getMakeVars(ctx, "TW_STATUS_ICONS_ALIGN"), "\"") == "bottom" || strings.Trim(getMakeVars(ctx, "TW_STATUS_ICONS_ALIGN"), "\"") == "3" {
+				alignProp = "%status_bottomalign_header_y%"
+			}
 			newFile = strings.Replace(newFile, "{battery_pos}", props[0], -1)
 			newFile = strings.Replace(newFile, "{cpu_pos}", props[1], -1)
 			newFile = strings.Replace(newFile, "{clock_12_pos}", props[2], -1)
 			newFile = strings.Replace(newFile, "{clock_24_pos}", pos_clock_24, -1)
+			newFile = strings.Replace(newFile, "{statusicons_align}", alignProp, -1)
 		}
 		// Custom position for status bar items - end