Theme Chooser In Prefs

Request new functionality here
User avatar
idoxlr8
Bear Rating Trainee
Bear Rating Trainee
Posts: 46
Joined: 25 Mar 2013, 20:04
Location: Texas, USA
Contact:

Theme Chooser In Prefs

Postby idoxlr8 » 28 Mar 2013, 20:39

With all the new themes being posted since greader shutdown.
I was thinking maybe it would be cool to be able to select a theme from a dropdown, based on the .css files that are stored in the themes folder.
I have been using the Customize Stylesheet Button with:

Code: Select all

@import url('themes/mytheme.css');

Just seems it would be easier to list all available themes instead of having multiple plugins that have top be updated.
Perhaps a screenshot, preview from image located in same folder and same name as the theme.css...
Just a thought... anybody care to take this on?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Theme Chooser In Prefs

Postby fox » 28 Mar 2013, 20:43


enzipher
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 24 Mar 2013, 10:52

Re: Theme Chooser In Prefs

Postby enzipher » 28 Mar 2013, 21:40

Ah ha! Thought about doing that as a plugin, never occurred to me to just ask. :)
Last edited by enzipher on 29 Mar 2013, 02:15, edited 1 time in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Theme Chooser In Prefs

Postby fox » 28 Mar 2013, 21:42

This makes more sense within preferences I think, although it definitely could be done as a plugin.

User avatar
idoxlr8
Bear Rating Trainee
Bear Rating Trainee
Posts: 46
Joined: 25 Mar 2013, 20:04
Location: Texas, USA
Contact:

Re: Theme Chooser In Prefs

Postby idoxlr8 » 28 Mar 2013, 22:47

Awesome... Worked like a charm
Thanks Fox

User avatar
ebell451
Bear Rating Trainee
Bear Rating Trainee
Posts: 44
Joined: 15 Mar 2013, 15:06
Contact:

Re: Theme Chooser In Prefs

Postby ebell451 » 28 Mar 2013, 23:50

Thanks for including this fox.

WRXIzumi
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 18 Mar 2013, 22:17

Re: Theme Chooser In Prefs

Postby WRXIzumi » 02 Apr 2013, 21:11

The UI for the theme chooser was not showing up for me in the prefs panel. I got it working by adding a line to the pref_help array for USER_CSS_THEME.

I am still learning git and am having trouble setting up access to my repo via http so here is the git diff instead of a pull. It is a trivial change but figured I would include it to be complete.

Code: Select all

diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 938782b..8b45c98 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -52,6 +52,7 @@ class Pref_Prefs extends Handler_Protected {
                        "STRIP_IMAGES" => array(__("Do not embed images in articles"), ""),
                        "STRIP_UNSAFE_TAGS" => array(__("Strip unsafe tags from articles"), __("Strip all but most common HTML tags when reading articles.")
                        "USER_STYLESHEET" => array(__("Customize stylesheet"), __("Customize CSS stylesheet to your liking")),
+                       "USER_CSS_THEME" => array(__("Select custom theme"), __("Select a custom theme (*.css) from those in the themes directory.")),
                        "USER_TIMEZONE" => array(__("User timezone"), ""),
                        "VFEED_GROUP_BY_FEED" => array(__("Group headlines in virtual feeds"), __("Special feeds, labels, and categories are grouped by orig
                );

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Theme Chooser In Prefs

Postby fox » 02 Apr 2013, 21:41

Yeah, my mistake there. Wonder if anything else got lost.


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 3 guests