Skip to Content (Press Enter)
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Platforms
OutSystems.com
Personal Edition
Community
Resources
Support
Search in OutSystems
Log in
Get Started
Community
›
Forge
›
Assets list
›
DarkModeToggle
DarkModeToggle
Stable version
1.0.0
(Compatible with
OutSystems 11
)
Uploaded
on
22 Sep (20 hours ago)
by
2.0
(1 rating)
Overview
Reviews
Versions
Documentation
Support
DarkModeToggle
Reviews
Sort by:
Newest
Newest
Oldest
Highest rating
Lowest rating
5 star
0
0
Reviews |
0
Ratings
4 star
0
0
Reviews |
0
Ratings
3 star
0
0
Reviews |
0
Ratings
2 star
1
1
Review |
1
Rating
1 star
0
0
Reviews |
0
Ratings
1
Rating
2.0
1
Review
by
15:10 (5 hours ago)
in version 1.0.0
The toggle works, but the implementation is hard to live with in a real app:
• State lives in window globals instead of a Client Variable, so GetCurrentMode is wrong until the block has rendered.
• The block CSS forces !important rules on body, inputs and any class containing "card"/"panel", overriding the app theme and OutSystems UI.
• Colour palettes are hard-coded in JavaScript and duplicated across three actions; the theme should own colours, the component should only switch a data-theme attribute.
• Runs in OnReady, so every page load flashes light before going dark; a global transition style is injected and never removed.
• No accessibility (Link with no label, no role="switch"), console.log everywhere, errors silently swallowed, mandatory event, no descriptions.
Loading
Loading...