prosilver French edition

Default color "coral"? - prosilver French edition

Default color "coral"?

by karado58 » Sun Feb 11, 2024 3:20 am

Hello Sir Cabot, :D

Is it possible to change default color to "coral"?

Thank you as always, Cabot!!
defaultcolor.jpg
defaultcolor.jpg (31.33 KiB) Viewed 73 times
User avatar
karado58
Registered User
Posts: 82
Joined: Wed Aug 17, 2005 4:06 pm

Re: Default color "coral"?

by cabot » Sun Feb 11, 2024 8:48 am

Hello,

In custom_prosilver_fr.css, find :

Code: Select all

--color01: #1e90ff;
Replace with:

Code: Select all

--color01: coral;
User avatar
cabot
Registered User
Posts: 799
Joined: Sat Jan 07, 2012 4:16 pm

Re: Default color "coral"?

by karado58 » Mon Feb 12, 2024 5:23 am

Hi Cabot,
Doesn't appear to be working. I did do the delete cache on browser and even on phpBB.
It is still falling back to #1e90ff.

Code: Select all

/*
Force dark theme
*/
html,
[data-theme=light] {
	--color01: coral;
	--color02: #222;
	--color03: #333;
	--color04: #444;
	--color05: #555;
	--color06: #666;
	--color07: #6b6b6b;
	--color08: #7b7b7b;
	--color09: #d31141;
	--color10: #6a1b2e;
	--color11: #fff;
	--color12: #ccc;
	--color13: #ddd;
	--color14: #000;
	--color15: #fff;
	--contact-icon: var(--dark-contact-icon);
	--online: var(--dark-online);
	--offline: var(--dark-offine);
	color-scheme: dark;
}
User avatar
karado58
Registered User
Posts: 82
Joined: Wed Aug 17, 2005 4:06 pm

Re: Default color "coral"?

by cabot » Mon Feb 12, 2024 11:27 am

Two things:
  1. You didn't undo this change as I suggested in this message.

    It needs to be undone (or restore the original file) because by forcing the dark theme with the data attribute, colors declared in the original CSS file takes precedence. You no longer need to modify the HTML to add this attribute: the extension's CSS declarations allow the dark theme to be displayed.

    As a reminder:
    cabot wrote:You can now put the two unmodified original styles back, the extension will do the job and you won't have to worry about updates.
  2. It seems that the modification in the extension's custom_prosilver_fr.css file on your board has not been made.
:)
User avatar
cabot
Registered User
Posts: 799
Joined: Sat Jan 07, 2012 4:16 pm

Re: Default color "coral"?

by karado58 » Tue Feb 13, 2024 5:38 am

cabot wrote:Two things:
  1. You didn't undo this change as I suggested in this message.

    It needs to be undone (or restore the original file) because by forcing the dark theme with the data attribute, colors declared in the original CSS file takes precedence. You no longer need to modify the HTML to add this attribute: the extension's CSS declarations allow the dark theme to be displayed.

    As a reminder:
    cabot wrote:You can now put the two unmodified original styles back, the extension will do the job and you won't have to worry about updates.
  2. It seems that the modification in the extension's custom_prosilver_fr.css file on your board has not been made.
:)
Did what you originally asked me to do, working as expected now!!
Thank you Cabot!!
All I need now is the first real visitor to Register on the forum.
I feel like I'm all dressed up in a tuxedo, with no date for the dance! ;)
User avatar
karado58
Registered User
Posts: 82
Joined: Wed Aug 17, 2005 4:06 pm

Re: Default color "coral"?

by cabot » Tue Feb 13, 2024 6:23 pm

Don't expect people to come on their own. You need to advertise your forum on social networks and encourage people to come. You also need content to attract them and encourage them to participate.
I wish you all the best for the future of your board!
User avatar
cabot
Registered User
Posts: 799
Joined: Sat Jan 07, 2012 4:16 pm

Re: Default color "coral"?

by karado58 » Wed Feb 14, 2024 6:46 am

cabot wrote:Don't expect people to come on their own. You need to advertise your forum on social networks and encourage people to come. You also need content to attract them and encourage them to participate.
I wish you all the best for the future of your board!
Thank you for your kind words, Cabot, I appreciate them!!
User avatar
karado58
Registered User
Posts: 82
Joined: Wed Aug 17, 2005 4:06 pm

Re: Default color "coral"?

by genshijin » Sun Mar 10, 2024 10:47 am

Got a bit confused here...

I have used the Proflat Dark Side and personal theme from the French website which seems easier to modify.
My forum wad (obviously) dark and a lime green text.

I have now installed Prosilver French Edition.
I also wanted the default setting for visitors to be dark theme and used the fix suggested in the overall header:
Simply add data-theme="dark" to the <html> tag in overall_header.html
If I want to change the default text colour (color01) in the css file In custom_prosilver_fr.css, then I have to undo the changes in the overall header?

A couple of questions...
If I undo the overall header file changes, how/where to I force dark theme to be default?
If I swap the colours around - blue (color01) to lime green in the css file, does this affect the mouse over text pop up displaying the colour names in the palette selection?

This stuff would be nice as an FAQ topic.

Thanks
Andy
genshijin
Registered User
Posts: 128
Joined: Fri Nov 09, 2018 2:03 pm
Location: Uk and sometimes Japan
Name: andy duggan

Re: Default color "coral"?

by cabot » Sun Mar 10, 2024 11:59 am

Hello,

If you want to display "LimeGreen" as the default text colour, simply add data-color="LimeGreen" to the <html> tag, in the same way as for data-theme. :)

Code: Select all

<html dir="{{ S_CONTENT_DIRECTION }}" lang="{{ S_USER_LANG }}" data-theme="dark" data-color="LimeGreen">
User avatar
cabot
Registered User
Posts: 799
Joined: Sat Jan 07, 2012 4:16 pm

Re: Default color "coral"?

by genshijin » Sun Mar 10, 2024 4:32 pm

That works perfectly... thanks for the fix and a reply Sunday lunchtime!
Andy
genshijin
Registered User
Posts: 128
Joined: Fri Nov 09, 2018 2:03 pm
Location: Uk and sometimes Japan
Name: andy duggan

Re: Default color "coral"?

by cabot » Sun Mar 10, 2024 6:10 pm

You can find the list of available colours in the config.html file.
You can even add or remove items from the list! :)

Code: Select all

{% DEFINE COLORS = ['Crimson', 'PaleVioletRed', 'MediumOrchid', 'BlueViolet', 'SlateBlue', 'RoyalBlue', 'DodgerBlue', 'DarkTurquoise', 'DarkCyan', 'LimeGreen', 'YellowGreen', 'Gold', 'Orange', 'Coral', 'Gray'] %}
User avatar
cabot
Registered User
Posts: 799
Joined: Sat Jan 07, 2012 4:16 pm