Layout dialog: More expansion fixes
Line dialog: Replace deprecated color property.