[GH-ISSUE #199] Add custom theme #164

Closed
opened 2026-02-25 21:34:19 +03:00 by kerem · 3 comments
Owner

Originally created by @hartois on GitHub (Jun 2, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/199

Originally assigned to: @jasonmunro on GitHub.

Hello,
how can I add new custom theme?
I think that it's is not a correct way to change hm_themes() function in modules/themes/modules.php

Originally created by @hartois on GitHub (Jun 2, 2017). Original GitHub issue: https://github.com/cypht-org/cypht/issues/199 Originally assigned to: @jasonmunro on GitHub. Hello, how can I add new custom theme? I think that it's is not a correct way to change hm_themes() function in modules/themes/modules.php
kerem 2026-02-25 21:34:19 +03:00
Author
Owner

@jasonmunro commented on GitHub (Jun 2, 2017):

I'm open to suggestions to make this easier. However I'm opposed to dynamically determining themes - they need to be white-listed somewhere. Right now to create a theme you create the css file in the modules/themes/assets directory, and update the hm_themes() function to include the filename and name used in the UI.

<!-- gh-comment-id:305892016 --> @jasonmunro commented on GitHub (Jun 2, 2017): I'm open to suggestions to make this easier. However I'm opposed to dynamically determining themes - they need to be white-listed somewhere. Right now to create a theme you create the css file in the modules/themes/assets directory, and update the hm_themes() function to include the filename and name used in the UI.
Author
Owner

@hartois commented on GitHub (Jun 5, 2017):

I see this as a configuration file with a list of themes

<!-- gh-comment-id:306207242 --> @hartois commented on GitHub (Jun 5, 2017): I see this as a configuration file with a list of themes
Author
Owner

@jasonmunro commented on GitHub (Jun 13, 2017):

Made some progress on this. You can now create a custom theme by doing the following:

<!-- gh-comment-id:308253079 --> @jasonmunro commented on GitHub (Jun 13, 2017): Made some progress on this. You can now create a custom theme by doing the following: - creating the css file and putting it in modules/themes/assets - editing and moving the modules/themes/assets/themes.ini file (see the comments in this file for more info: https://github.com/jasonmunro/cypht/blob/master/modules/themes/themes.ini) - rerunning the config_gen.php script.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#164
No description provided.