Each screenshot sits in a frame of a fixed size, so that the surrounding form is laid out once and does not jump when an image -- loaded in the background -- arrives or is switched.
| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final double | PREVIEW_HEIGHT
The screenshots are roughly 16:10; a box slightly taller than that leaves a little air around the ones that differ by a few pixels instead of cropping them. |
| private static final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static StackPane | |
| private void |
| FRAME_PADDING | back to summary |
|---|---|
| private static final double FRAME_PADDING | |
| PREVIEW_HEIGHT | back to summary |
|---|---|
| private static final double PREVIEW_HEIGHT The screenshots are roughly 16:10; a box slightly taller than that leaves a little air around the ones that differ by a few pixels instead of cropping them. | |
| PREVIEW_WIDTH | back to summary |
|---|---|
| private static final double PREVIEW_WIDTH | |
| ThemePreviewView | back to summary |
|---|---|
| public ThemePreviewView() | |
| bind | back to summary |
|---|---|
| public void bind(ObservableValue<ThemePreset> theme, ObservableValue<ThemeColorScheme> colorScheme) | |
| frame | back to summary |
|---|---|
| private static StackPane frame(ImageView preview) | |
| show | back to summary |
|---|---|
| private void show(@Nullable ThemePreset theme, @Nullable ThemeColorScheme colorScheme) | |