14 Commits

Author SHA1 Message Date
David Straub e70f3a2f3b Link image regions to any object and rework region editing (#1508)
* Link image regions to any object and rework region editing

Image regions can be linked to people, families, events, places,
sources and citations, and an object can have several regions in the
same image. Regions can be moved and resized, drawing works on touch
screens, and Escape cancels a drag or clears the selection.

* Fix label

* Style tweaks

* Address comments
2026-10-09 13:49:27 +02:00
David Straub efa68aed25 Draw right-angled connectors in the tree charts (#1498)
The ancestor, descendant and hourglass charts draw right-angled
connectors like the relationship chart, with rounded outer corners.
Each stretch of a shared stem or bar is drawn by one link only, and
links use an opaque colour, so overlapping lines do not look darker.

The tree charts show all child relations and dash the lines to
children who are not birth children, as the relationship chart does.
The descendant chart and the relatives menu now include adopted, step
and foster children.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:32:10 +02:00
David Straub 39a36c2623 Draw right-angled connectors in the relationship chart (#1497)
* Draw right-angled connectors in the relationship chart

Graphviz places the partner groups, and the links between them are
routed in the app: each family gets one bar over its children, with a
line down to each child. Bars that would overlap get different heights,
ordered so that lines from above end before lines going down at the same
x, and gaps between rows grow where they need more bars. A link that
skips rows goes through each row where Graphviz left room for it, and is
straightened where the row has room. Several parent families of one
child reach its card side by side.

The stem and bar of a family are drawn once and stay solid, so only the
line to a non-birth child is dashed. Links fade out and in when the
layout changes. Rows are closer together, and links and couple
connectors are 1.5 pixels wide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Address comment, other fixes

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:01:40 +02:00
David Straub e826600507 Note editor: Markdown-style input and highlight (#1443)
* Note editor: Markdown-style input & highlight

* Add CSS rule
2026-09-17 10:28:36 +02:00
David Straub 6caa40322b Table improvements (#1201)
* Fix bugs in GrampsjsTable

* Refactor sort logic

* CSS improvements

* Remove unused variable

* Comment
2026-05-28 19:43:34 +02:00
David Straub c29628c101 Allow printing multi-page views (#1137)
* Allow printing multi-page views

* Traling newline
2026-05-08 09:16:01 +02:00
David Straub 37b927942c Centralize color management (#1135) 2026-05-07 15:25:59 +02:00
David Straub a25af9a51b Note style tweaks (#1075)
* Tweak note display style

* CSS

* Remove unused var
2026-04-12 21:41:18 +02:00
David Straub 9d2edde66a Improve new tag dialog (#1030)
* Improve new tag dialog

* Style tweaks

* Reviewer comment 1

* Reviewer comment
2026-04-02 13:45:11 +02:00
David Straub 4cc672e0cf Handle unknown and other gender in person and tree views (#1020)
* Handle unknown and other gender in person and tree views

* Update src/components/GrampsjsEditGender.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/components/GrampsjsEditGender.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-31 16:26:43 +02:00
David Straub c6450ff563 Person events: optionally show family and relative events. Show age. Style changes (#1019)
* Person events: new styling, add family & relative events

* Slightly increase vertical white space

* Address reviewer comments
2026-03-31 15:06:26 +02:00
David Straub 67914cf536 Replace mwc-dialog with md-dialog everywhere (#991)
* Replace mwc-dialog with md-dialog everywhere

* migrate users component

* Address reviewer comment

* Fix edit home person: remove dialog

* Fix tag typo

* Address reviewer comment
2026-03-27 13:49:36 +01:00
David Straub 81d5f65ac0 Migrate mwc-fab to md-fab (#982)
Replace all uses of @material/mwc-fab with @material/web/fab/fab.js.
Icons use grampsjs-icon in slot="icon" with MDI paths. Colors are
overridden via CSS custom properties in :root to match the previous
mwc-fab appearance (blue background, white icon).

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 08:13:28 +01:00
M. Schüpbach 280c212162 Dark mode (#145) (#755)
* Add theme select to settings view

* WIP: dark mode colors

* Use system theme by default

* Fix eslint error

* Move variables unrelated to theme back to SharedStyles.js

* Move theme css variables to separate file

* Revert light theme colors

* WIP: replace hardcoded colors with variables

* Add commas to rgb values for vs code to show color decorators

* Fix invalid color code

* Remove unused css

* WIP: replace hardcoded colors with variables

* WIP: replace hardcoded colors with variables

* WIP: replace hardcoded colors with variables

* WIP: replace hardcoded colors with variables

* WIP: replace hardcoded colors with variables

* WIP: replace hardcoded colors with variables

* Set dark theme colors for legacy material components

* Set dark theme colors for legacy checkbox component

* Change primary color for dark theme

* Imrove fan chart text colors for dark mode

* Set dark theme outline colors for legacy button component

* Fix light mode background colors when dialog is open

* Change primary color for dark theme

* Sync map theme with gramps theme

* Make theme selector translatable

* Improve contrast for mwc-dialog in dark theme

* Replace hardcoded colors with variables

* Fix contrast for broken image in dark theme
2025-10-12 10:39:14 +02:00