Skip to content

Commit

Permalink
translate f7 underscores into iconify style dashes
Browse files Browse the repository at this point in the history
f7 icons use underscores. When they're imported into iconify, the underscores became dashes.

When user actually specified f7:icon_name it should work without them having to know that we implemented it with iconify.

Alternatively users can use iconify:f7:icon-name with dashes.

If they had specified f7:icon-name that would still to work too

Signed-off-by: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer committed Mar 4, 2024
1 parent f64b69f commit 2bc6b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public extension Endpoint {
if source == "f7" {
source = "iconify"
set = "f7"
icon = icon.replacingOccurrences(of: "_", with: "-")
}
if source == "if" || source == "iconify" {
queryItems = [URLQueryItem(name: "height", value: "64")]
Expand Down

0 comments on commit 2bc6b5d

Please sign in to comment.