Conditional formating (Format ▸ Conditional ▸ Condition) allows you to apply predefined styles automatically, when certain conditions are fulfilled.