Skip to content

[ENH] bootstrap themes across light and dark mode#6950

Open
Ndaboom wants to merge 11 commits into
Ylianst:masterfrom
Ndaboom:fix-boostrap_ensures_title_consistency
Open

[ENH] bootstrap themes across light and dark mode#6950
Ndaboom wants to merge 11 commits into
Ylianst:masterfrom
Ndaboom:fix-boostrap_ensures_title_consistency

Conversation

@Ndaboom

@Ndaboom Ndaboom commented Apr 6, 2025

Copy link
Copy Markdown
Contributor

This fix sets explicit text colors for <h1> elements in both light and dark modes to ensure visibility and maintain visual contrast. A very dark gray (#adafae) is used for light mode to avoid pure black on white, improving readability and aesthetics, while a very light gray (#f8f9fa) is used in dark mode for optimal contrast.

@si458

si458 commented Apr 8, 2025

Copy link
Copy Markdown
Collaborator

this sadly hasnt really worked,
if you say use the darkly color scheme, and then switch your browser into light mode,
and check the my account page, the device groups are completely missing
image
but use dark mode for your browser and its perfectly fine
image

@Ndaboom

Ndaboom commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

this sadly hasnt really worked, if you say use the darkly color scheme, and then switch your browser into light mode, and check the my account page, the device groups are completely missing image but use dark mode for your browser and its perfectly fine image

Oops, I tested with a MeshCentral instance without any device group(no devices data at all), which is why I couldn't see that part. I was only referring to the page titles to see if everything works. I will continue the work and push changes.
Thank you for the review.

@DaanSelen

Copy link
Copy Markdown
Contributor

this sadly hasnt really worked, if you say use the darkly color scheme, and then switch your browser into light mode, and check the my account page, the device groups are completely missing image but use dark mode for your browser and its perfectly fine image

Oops, I tested with a MeshCentral instance without any device group(no devices data at all), which is why I couldn't see that part. I was only referring to the page titles to see if everything works. I will continue the work and push changes. Thank you for the review.

Thank you for your time and effort in advance!

@si458

si458 commented May 8, 2025

Copy link
Copy Markdown
Collaborator

@Ndaboom sorry thats made it worse! and i was just using the default color theme in day mode
image

@DaanSelen

Copy link
Copy Markdown
Contributor

@Ndaboom is this still going on?

@Ndaboom

Ndaboom commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@Ndaboom is this still going on?

Yes, it is, but I haven't had a chance to continue working yet. I will follow up here very soon when I get something.
Thanks.

@Ndaboom Ndaboom force-pushed the fix-boostrap_ensures_title_consistency branch from ad2d55c to 7157422 Compare July 25, 2025 00:40
@Ndaboom Ndaboom changed the title [ENH] bootstrap themes: Ensure h1 titles remain visible across light and dark themes [ENH] bootstrap themes across light and dark themes Jul 30, 2025
@Ndaboom

Ndaboom commented Jul 30, 2025

Copy link
Copy Markdown
Contributor Author

Hi @si458, I've made a few changes. Could you test them when you have a chance?

Thank you.

@Ndaboom Ndaboom changed the title [ENH] bootstrap themes across light and dark themes [ENH] bootstrap themes across light and dark mode Jul 30, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Sep 29, 2025
@DaanSelen

Copy link
Copy Markdown
Contributor

Bump?

@github-actions github-actions Bot removed the Stale label Sep 30, 2025
@marclaporte

Copy link
Copy Markdown
Collaborator

@Ndaboom What is the next step?

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Jan 8, 2026
@DaanSelen

Copy link
Copy Markdown
Contributor

@si458 what is halting it?

@github-actions github-actions Bot removed the Stale label Jan 9, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Mar 10, 2026
@DaanSelen

Copy link
Copy Markdown
Contributor

Any steps: @si458 ?

@github-actions github-actions Bot removed the Stale label Mar 12, 2026
@si458

si458 commented Mar 15, 2026

Copy link
Copy Markdown
Collaborator

@Ndaboom can u fix conflict please, then can re-look at this 👍

@Ndaboom

Ndaboom commented Mar 19, 2026

Copy link
Copy Markdown
Contributor Author

@Ndaboom can u fix conflict please, then can re-look at this 👍

@si458 I've fixed the conflicts. Thank you.

@marclaporte

Copy link
Copy Markdown
Collaborator

@si458 @DaanSelen Are we good to merge?

@DaanSelen

Copy link
Copy Markdown
Contributor

@si458 @DaanSelen Are we good to merge?

For me this is OK! Simon has to give the green light.

@si458 si458 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make changes to fix translation issues

Comment thread views/default3.handlebars
} else {
r += '</table>';
if (sort == 3) { r = '<div style="margin:10px"><i>' + "No devices with tags found." + '</i></div>'; }
if (sort == 3) { r = '<div style="margin:10px"><i>' + "<span>No devices with tags found</span>." + '</i></div>'; }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please can you move the and so its outside the " "
example <i><span>' + "abc" + '</span></i>
this makes sure the string in the middle isnt changed for translations

Comment thread views/default3.handlebars
} else if (mesh.mtype == 4) {
r += '<td><div id=DevxCol' + deviceHeaderId2 + ((collapsed === true) ? ' style=display:none' : '') + '>'; // Open collapse div
r += '<div style=padding:10px><i>' + "No devices in this device group";
r += '<div style=padding:10px><i>' + "<span>No devices in this device group</span>";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please can you move the and so its outside the " "
example <i><span>' + "abc" + '</span></i>
this makes sure the string in the middle isnt changed for translations

Comment thread views/default3.handlebars
} else if (mesh.mtype == 3) {
r += '<td><div id=DevxCol' + deviceHeaderId2 + ((collapsed === true) ? ' style=display:none' : '') + '>'; // Open collapse div
r += '<div style=padding:10px><i>' + "No local devices in this device group";
r += '<div style=padding:10px><i>' + "<span>No local devices in this device group</span>";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please can you move the and so its outside the " "
example <i><span>' + "abc" + '</span></i>
this makes sure the string in the middle isnt changed for translations

Comment thread views/default3.handlebars
} else if (mesh.mtype == 2) {
r += '<td><div id=DevxCol' + deviceHeaderId2 + ((collapsed === true) ? ' style=display:none' : '') + '>'; // Open collapse div
r += '<div style=padding:10px><i>' + "No devices in this device group";
r += '<div style=padding:10px><i>' + "<span>No devices in this device group</span>";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please can you move the and so its outside the " "
example <i><span>' + "abc" + '</span></i>
this makes sure the string in the middle isnt changed for translations

Comment thread views/default3.handlebars
r += '</span></td></tr><tr>';
if (mesh.mtype == 1) {
r += '<td><div style=padding:10px><i>' + "No Intel&reg; AMT devices in this device group";
r += '<td><div style=padding:10px><i>' + "<span>No Intel&reg; AMT devices in this device group</span>";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please can you move the and so its outside the " "
example <i><span>' + "abc" + '</span></i>
this makes sure the string in the middle isnt changed for translations

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants