Skip to content

Commit

Permalink
Support material and F7 icons sets (#750)
Browse files Browse the repository at this point in the history
By simply utilizing iconify

Signed-off-by: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer authored Jan 9, 2024
1 parent d3a266a commit 4c480cb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,22 @@ public extension Endpoint {
icon = components[2]
} else if components.count == 2 {
source = components[0]
set = "classic"
if source == "material" {
set = "baseline"
} else {
set = "classic"
}
icon = components[1]
}
if source == "material" {
source = "iconify"
icon = "\(set)-\(icon)"
set = "ic"
}
if source == "f7" {
source = "iconify"
set = "f7"
}
if source == "if" || source == "iconify" {
queryItems = [URLQueryItem(name: "height", value: "64")]
if !iconColor.isEmpty {
Expand Down

0 comments on commit 4c480cb

Please sign in to comment.