mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
template-processor: updated comments
This commit is contained in:
@@ -126,10 +126,10 @@ def _score_colors_chroma(
|
||||
colors_with_counts: list[tuple[RGB, int]],
|
||||
) -> list[tuple[Color, float]]:
|
||||
"""
|
||||
Score colors prioritizing chroma (vibrancy).
|
||||
Score colors prioritizing chroma (vibrancy) over area coverage.
|
||||
|
||||
This is the original scoring algorithm that picks the most colorful colors.
|
||||
Used for "vibrant" mode.
|
||||
Uses count^0.3 weighting so saturated colors win even with small area.
|
||||
Used for "vibrant" mode to find the most eye-catching colors.
|
||||
|
||||
Args:
|
||||
colors_with_counts: List of (RGB, count) tuples from clustering
|
||||
|
||||
@@ -9,7 +9,8 @@ Supported scheme types:
|
||||
- tonal-spot: Default Android 12-13 scheme (recommended)
|
||||
- fruit-salad: Bold/playful with hue rotation
|
||||
- rainbow: Chromatic accents with grayscale neutrals
|
||||
- vibrant: Preserves wallpaper colors directly (legacy)
|
||||
- vibrant: Prioritizes the most saturated colors regardless of area
|
||||
- faithful: Prioritizes dominant colors by area coverage
|
||||
"""
|
||||
|
||||
from typing import Literal
|
||||
|
||||
Reference in New Issue
Block a user