Commit Graph
31 Commits
Author SHA1 Message Date
autocraft-bot[bot] aa00bd468a Merge pull request #1476 2026-12-01 06:47:57 +00:00
dotCooCoo ab34c77599 Merge main into fix/font-dialog-keeps-preset-system-colors 2026-11-30 10:12:14 -08:00
Dylan M. Taylor e8fdf539e4 dialogs-w8: net change of 3 commits
- dialogs-w8: written by an agent
- dialogs-w8: finished by an agent
- dialogs-w8: review fixes (review-1)
2026-11-27 14:51:32 +00:00
Dylan M. Taylor 1c7f9ace94 ribbon-w3: net change of 2 commits
- ribbon-w3: written by an agent
- ribbon-w3: review fixes (review-1)
2026-11-27 14:51:30 +00:00
autocraft-bot[bot] 90e44a619f Apply review fixes
- crates/engine/src/cmd/format/paragraph.rs
2026-11-27 12:46:37 +00:00
dotCooCoo 25dc8b9dcf Format: OK with the Font dialog's Color untouched keeps the stored color
The Font dialog's OK sent the `color` it was opened with back to
`format.fontDialog`. For a preset or system name that `color_value` does
not know, that color is the RGB it is drawn with, so OK replaced the name
even when only another field changed. A color with more than 256
transforms made OK fail with "invalid `color`", so the other edits were
not applied either.

OK now sends no `color` when the Color field is untouched, and the text
keeps its color reference as stored. An edited Color field is sent as
before.

Tests: a UI test opens the dialog on an unknown preset with 257
transforms and on an unknown system color, ticks Bold and presses OK; an
engine test sends the dialog's fields without `color` and checks that
the stored color, size and bold are kept.
2026-11-21 22:30:26 -08:00
dotCooCoo 82d8ccff8c Merge main into fix/font-dialog-keeps-preset-system-colors 2026-11-20 23:26:19 -08:00
FredApps 9a8e8227ff Merge pull request #791 from Hamza0101/fix/font-script-typefaces
format.font: set the East Asian and complex-script typefaces too
2026-11-18 16:28:54 +07:00
dotCooCoo 329a17a997 Merge main into fix/font-dialog-keeps-preset-system-colors 2026-11-13 11:53:41 -08:00
autocraft-bot[bot] b73a53df3d Apply review fixes
- crates/engine/src/cmd/format/font.rs
2026-11-12 07:46:39 +00:00
Hamza Naveed 6eebec7df6 Decrease Font Size steps down one size at a time from any size (#2070)
Ctrl+[ (and Cmd+Shift+,) shrank any size above 66 straight to 66: the
step list stopped at 66, so the largest list size below 120 was 66.
The list now holds PowerPoint's sizes up to 96, as the Font Size box
already listed them, and above 96 shrink steps back 8 points at a
time, as grow steps up: 120 -> 112 -> 104 -> 96 -> 88 -> 80 -> 72 ->
66. The Font Size box lists the same SIZES instead of adding its own
tail.

Fixes #2059
2026-11-12 06:16:48 +00:00
aiongg 6b2625f40f Merge main into refuse-empty-style-calls 2026-11-07 20:15:30 +00:00
NetterSilverandClaude Haiku 5.5 57780f9e61 Fix format.paragraph silently left-aligning known align names
Found while testing crates/engine/src/cmd/format/paragraph.rs:123-129

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 20:00:33 +00:00
aiongg 7f34fb3971 Merge main into refuse-empty-style-calls 2026-11-07 08:39:44 +00:00
aiongg 456cecdc58 Apply review fixes
- crates/engine/src/cmd/format/paragraph.rs
2026-11-04 20:55:50 +00:00
aiongg 2dbcbc0c8a Apply review fixes
- crates/engine/src/cmd/format.rs
- crates/engine/src/cmd/format/font.rs
2026-11-04 20:16:10 +00:00
dotCooCoo d379334ea5 Format: the Font dialog gives an unknown preset or system name as the color it draws
A preset or system color name kept from an opened file that the color
parser does not know is given to the dialog as its drawn RGB (black for a
preset, the stored last color for a system color), so OK no longer
rejects the color when another field changes.
2026-11-04 08:04:50 -08:00
Brandon Thomas 928aa9cc16 Merge pull request #1713
# Conflicts:
#	crates/pptx/tests/it/roundtrip.rs
2026-11-03 08:53:00 -05:00
Harrison Booth bb417bf98a Preserve Thai distributed paragraph alignment 2026-11-02 21:53:40 -06:00
Harrison Booth a200b92258 Merge remote-tracking branch 'origin/main' into dc-build-d712
# Conflicts:
#	crates/model/src/text.rs
#	crates/pptx/src/read/dml.rs
#	crates/pptx/src/write/dml.rs
#	crates/pptx/tests/it/roundtrip.rs
2026-11-02 15:45:48 -06:00
Hamza 1a16bf975c format.font: a script typeface that is not a string is refused
`str_param` answers `None` both for an absent key and for a key holding something
that is not a string, so `typeface_param` read the two as the same thing. With
`{"family": "Lato", "eastAsia": 42}` the command set the Latin typeface, left the
East Asian one as it was and reported success -- the one thing the caller asked
for was the one thing that did not happen (noted in review).

Read through `p.get(key)` instead, the way `opt_usize_param` and `id_param`
already read theirs: an absent key, and an explicit `null`, still mean the script
keeps its typeface; anything else present has to be a string.

`family` is judged the same way, so `{"family": 42}` now says the key is not a
typeface name rather than that it is missing.
2026-11-02 15:43:23 +05:00
Zach BerryandClaude Sonnet 5.5 a121716629 [CC2] Style commands given none of their optional keys are refused
shape.line, shape.effects, picture.adjust, format.paragraph and
format.margins answered changed for a call that set nothing. They now
say what to pass. shape.fill already refused; the toggles (bold, bullets)
and geometry commands keep their meaningful defaults.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 16:19:39 -05:00
Brandon Thomas 8f6e1b420a Merge pull request #1589
Preserve bullet Follow Text settings

# Conflicts:
#	crates/pptx/tests/it/roundtrip.rs
2026-10-31 00:51:37 -04:00
Brandon Thomas fb05eaa30f Merge pull request #1490
Make layout/master placeholder formatting reach slides

# Conflicts:
#	crates/engine/src/tests.rs
2026-10-31 00:49:37 -04:00
Harrison Booth f5c2aca644 Preserve bullet follow-text inheritance 2026-10-30 23:05:16 -05:00
NetterSilverandClaude Haiku 5.5 9a716be59e Reject invalid colour in format.highlight instead of clearing it
Found while testing crates/engine/src/cmd/format/font.rs:228-231 (highlight), color_param at crates/engine/src/cmd.rs:381

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 04:41:09 +01:00
NetterSilverandClaude Sonnet 5.5 adaa4e6fa1 fix: keep per-level formatting when formatting layout/master placeholders
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:22:33 +01:00
Hamza 3a1a74d2aa format.font: set the East Asian and complex-script typefaces (#786)
A run carries a typeface per script (ECMA-376 §21.1.2.3): `a:latin`, `a:ea`
and `a:cs`. `format.font` set only the Latin one, so a CJK run kept drawing --
and saving -- in whatever `a:ea` named before, and there was no way to change
it.

`eastAsia` and `complexScript` set the other two. Left out they keep their
value, which is what the command has always done. A name that is empty or
longer than the Font dialog allows is refused rather than stored.

Rebased onto main, 637 commits on: engine's format.rs is split, so `font` and
`typeface_param` are in cmd/format/font.rs, the command's registry entry
stays in cmd/format.rs, and the tests went to cmd/text.rs.
2026-10-28 20:41:25 +05:00
dotCooCoo 695edabe55 Merge main into fix/font-dialog-keeps-preset-system-colors 2026-10-28 02:59:10 -07:00
Dylan M. Taylor 1a203c4a73 Refactor engine for strict Clippy checks 2026-10-28 06:02:27 +00:00
aiongg d5180fbb70 refactor(engine): split cmd/format.rs into cmd/format/{font,text_effects,paragraph,painter,ruler}.rs 2026-10-26 22:08:44 +00:00