Skip to content

Improve the handling for f7-icons on Apple Watch and implement static icon#980

Merged
timbms merged 4 commits intodevelopfrom
IconViewIconify
Oct 12, 2025
Merged

Improve the handling for f7-icons on Apple Watch and implement static icon#980
timbms merged 4 commits intodevelopfrom
IconViewIconify

Conversation

@timbms
Copy link
Copy Markdown
Contributor

@timbms timbms commented Oct 11, 2025

No description provided.

Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
@timbms timbms changed the title Improve the handling for f7-icons Improve the handling for f7-icons on Apple Watch Oct 11, 2025
timbms and others added 2 commits October 11, 2025 19:58
Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
@timbms timbms changed the title Improve the handling for f7-icons on Apple Watch Improve the handling for f7-icons on Apple Watch and implement static icon Oct 12, 2025
@timbms timbms requested a review from Copilot October 12, 2025 08:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves f7-icons handling on Apple Watch by implementing static icon support and fixing interface style detection. The changes ensure proper icon color handling and add Apple Watch-specific dark mode detection.

  • Enhanced icon endpoint to support static icon parameter
  • Fixed interface style detection for watchOS to always return dark mode
  • Updated icon color handling from string "white" to hex "#FFFFFF" format

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
openHABWatch/Views/Utils/PreviewConstants.swift Added new test widget with f7:alarm icon for testing
openHABWatch/Views/Utils/IconView.swift Updated icon color format and added staticIcon parameter support
openHABWatch/Model/AppSettings.swift Added convenience initializer for testing purposes
openHAB/OpenHABSitemapViewController.swift Updated icon endpoint call to include staticIcon parameter
OpenHABCore/Sources/OpenHABCore/Util/UIColorExtension.swift Fixed interface style detection for watchOS and improved iOS logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread openHABWatch/Views/Utils/IconView.swift
Comment thread OpenHABCore/Sources/OpenHABCore/Util/UIColorExtension.swift
Signed-off-by: Tim Mueller-Seydlitz <timbms@gmail.com>
@timbms timbms merged commit 9375664 into develop Oct 12, 2025
2 checks passed
@timbms timbms deleted the IconViewIconify branch October 12, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants