14 Commits

Author SHA1 Message Date
Ben Phelps
1e9e911877 better handle the full selfh.st icon set 2024-09-11 15:13:36 +03:00
Ben Phelps
b3591c3e69 add selfh.st icon set 2024-09-11 14:45:49 +03:00
shamoon
19c25713c4 Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
2023-10-18 09:49:33 -07:00
Mega-Volti
1560bb7762
Support custom colors for icons (#1724)
* Add custom colors to resolvedicon.jsx

Enables appending a color code (e.g. "#123456") to all mdi and si icons, in order to change their color to a per-icon custom one.

* Streamline code for custom icon colors in resolvedicon.jsx 

Removed redundant if statement when defaulting to theme colors if no custom icon color code is provided

* Update resolvedicon.jsx

Remove unnecessary variable, restoring the fallback code in case no custom icon color is provided.

* Update resolvedicon.jsx - test for custom color suffix

Changed if condition from string.match to string.test and expanded regex to also include upper case letters.

* Update resolvedicon.jsx - DRY

Removed repetition, slimmed down if statement.

Also reverse previous commit as it did not work as intended.

* Update resolvedicon.jsx - upper case color hex codes

Update regular expression to also allow for upper case letters as part of the hex color code, as either are valid when describing an objects color.

* Refactor custom color code

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-07-25 17:31:42 -07:00
Florian Rupp
ccbe11e20c add support for dashboard-icons svg format 2023-05-09 23:29:55 +02:00
davidsmejia
1de940dd90 fallback for --tw-text-opacity 2023-05-01 17:58:01 -04:00
shamoon
6867258449 Fix overflow non-square icons 2023-05-01 11:29:35 -07:00
David
f692e71991
Add Support for Simple Icons + Add optional theme colors for icons (#1438)
* add support for simple-icons si- prefix

* add iconStyle setting

* lowercase comment

* add supported prefix comment

* Apply suggestions from code review

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-05-01 11:06:05 -07:00
Erv Walter
5080301efe force icons to fit withing a 32x32 square 2023-04-23 16:12:08 +00:00
José Manuel Jurado Bujalance
93dda99aaa use abbr as icon fallback 2023-01-13 22:45:08 +01:00
Michael Shamoon
95dcb8802a Use ResolvedIcon, remove extra div 2022-12-11 10:30:04 -08:00
Michael Shamoon
2ab05350a3 Fix maxWidth / maxHeight style attrs 2022-11-06 14:41:02 -08:00
Michael Shamoon
57fef06931 fix resolved icon mdi icon overflow 2022-11-05 01:27:04 -07:00
maharsh9100
71faaa56dc
Feature: add category icons (#301)
* Update setting.yaml mapping

* Implement adding icon to categoryTitle

* Move resolveIcon func to utils for reusability

* Turn off default export eslint rule

* Fix util typo

* Revert "Turn off default export eslint rule"

This reverts commit e8dd853ba6fac1d33253667ffe9e02010a8dcfd6.

* fix resolveIcon export

* Revert "Update setting.yaml mapping"

This reverts commit 78c947766951e14d1f6db290c0ab03ccc8f1ebc3.

* Revert "Implement adding icon to categoryTitle"

* Use settings layout for group icon

* Revert "Fix util typo"

This reverts commit ab49b426ec6d925d7938c3ddec753a0e7c8759af.

* ResolvedIcon component

Co-authored-by: Mindfreak9100 <dhoom_rik@yahoo.com>
Co-authored-by: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
2022-11-04 14:38:33 -07:00