Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color changer mod - enhancement request - #FFFs #24

Open
sbulen opened this issue May 24, 2022 · 0 comments
Open

Color changer mod - enhancement request - #FFFs #24

sbulen opened this issue May 24, 2022 · 0 comments

Comments

@sbulen
Copy link

sbulen commented May 24, 2022

I think this mod is outstanding. One thing that would help creating "dark mode" themes is controls over text backgrounds.

There are a lot of #FFF values throughout the .css. Bright hot white... They hit you like a searchlight coming out of your smartphone in the dark...

I think we would need a cc_text_background, and a cc_focus_text_background (for the ones that normally change color when given focus).

They would look something like the following. This is definitely incomplete, but it's a start:

		// These ones added by sjrb - get rid of glaring white backgrounds, helpful for dark mode...
		'txt_background' => array(
			array(
				'elements' => 'input, button, select, textarea',
				'properties' => array('background')
			),
		),
		'focus_txt_bkg' => array(
			array(
				'elements' => 'input:focus, textarea:focus, button:focus, select:focus',
				'properties' => array('background')
			),
		),

With the corresponding changes to the language file:

$txt['cc_txt_background'] = 'Text Background';
$txt['cc_focus_txt_bkg'] = 'Focus Text Background';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant