Align corner clipping, antialiasing, and fractional material regions
This commit is contained in:
1 parent
f110ec80e1
commit
9666e4ff6c
16 files changed
+237
-68
No files matched your search
@@ -604,9 +604,6 @@ pub fn resolve_with_context(
|
||||
*path = theme_path(directory, path);
|
||||
}
|
||||
validate(&tokens)?;
|
||||
// Effects regions encode integer logical radii; publish the same value
|
||||
// to the shell and compositor, without rewriting the authored config.
|
||||
tokens.geometry.shell_radius = tokens.geometry.shell_radius.round();
|
||||
let requested_accent = tokens.colors.accent.clone();
|
||||
transform(&mut tokens, &policy.accessibility, &mut warnings);
|
||||
let theme = ResolvedTheme {
|
||||
@@ -1301,8 +1298,8 @@ pub fn import_family(id: &str, source: &str) -> Result<ImportedFamily, String> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn resolved_shell_radius_matches_integer_effect_regions() {
|
||||
for (requested, expected) in [(0.0, 0.0), (0.4, 0.0), (13.4, 13.0), (13.5, 14.0)] {
|
||||
fn resolved_shell_radius_preserves_fractional_values() {
|
||||
for (requested, expected) in [(0.0, 0.0), (0.4, 0.4), (13.4, 13.4), (13.5, 13.5)] {
|
||||
let document = crate::Document::parse(&format!(
|
||||
"theme {{ geometry {{ shell-radius {requested}; window-radius 7.25; }} }}"
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user