GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — system_theme/system_theme_web at master · bdlukaa/system_theme

Expand file tree

/

system_theme_web

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

system_theme_web

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
lib
lib
 
 
test
test
 
 
.flutter-plugins
.flutter-plugins
 
 
.flutter-plugins-dependencies
.flutter-plugins-dependencies
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 
system_theme_web.iml
system_theme_web.iml
 
 

README.md

Outline

system_theme_web

system_theme implementation for the web.

Testing

From the system_theme_web directory:

flutter pub get
flutter test --platform chrome

Browser accent colors

The web plugin reads the browser's CSS AccentColor system color, with accent-color: auto, when the browser supports it. This represents the browser's accent for UI controls, not a guaranteed native OS accent color. The CSS Highlight color is for selections and is not used as an accent fallback.

Browsers may return a fixed or browser-selected value instead of the user's OS choice to reduce fingerprinting. Forced-colors mode, browser and OS settings, and browser support can also affect the result. There is no reliable way for a web page to tell whether a returned AccentColor matches the native accent. In particular, accent-color: auto can remain auto in computed styles and does not expose a reliable native color on its own.

If AccentColor is unsupported or cannot be resolved, the plugin returns no color. SystemAccentColor.load() then retains its current palette: the configured SystemTheme.fallbackColor before a successful load, or the last successfully loaded palette on refresh. The plugin does not invent browser-specific color values. See the CSS Color specification for the privacy considerations.

To compare behavior manually, run the example in Chrome, Firefox, and Safari/WebKit, record the returned color, then change the OS accent and reload in each browser. A color that stays fixed is valid browser privacy behavior and must not be interpreted as proof of the OS accent.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.