-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from solvena/9-add-wireframe-design
Add wireframe design and move styling to a separate CSS file for easi…
- Loading branch information
Showing
5 changed files
with
537 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,236 @@ | ||
| /* This is the CSS design used in the application */ | ||
|
|
||
|
|
||
| /* Root / Page background */ | ||
| .root { | ||
|
|
||
| /* Colour pallette */ | ||
| dark-colour: rgb(28, 53, 45); | ||
| light-colour: rgb(249, 246, 243); | ||
| green-colour: rgb(166, 178, 139); | ||
| light-green-colour: rgba(166, 178, 139, 0.2); | ||
| red-colour: rgb(245, 201, 176); | ||
| dark-red-colour: rgb(53, 28, 32); | ||
|
|
||
|
|
||
| -fx-font-family: Verdana; | ||
| -fx-font-size: 13px; | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| /* All labels */ | ||
| .label { | ||
| -fx-text-fill: dark-colour; | ||
| -fx-font-size: 13px; | ||
| } | ||
|
|
||
| /* Title */ | ||
| .label.title-label { | ||
| -fx-font-size: 35px; | ||
| -fx-font-weight: bold; | ||
| -fx-padding: 0 0 12 0; | ||
| } | ||
|
|
||
| /* Form row labels (setup scene) */ | ||
| .label.form-label { | ||
| -fx-font-size: 14px; | ||
| } | ||
|
|
||
| /* Status bar label */ | ||
| .label.status-label { | ||
| -fx-font-size: 12px; | ||
| -fx-font-weight: bold; | ||
| } | ||
|
|
||
| /* File name label */ | ||
| .label.file-label { | ||
| -fx-font-size: 12px; | ||
| } | ||
|
|
||
| /* Card (centered white box in setup scene) */ | ||
| .card { | ||
| -fx-background-color: light-colour; | ||
| -fx-padding: 50 60 50 60; | ||
| } | ||
|
|
||
| /* Content area (main game tab/panel background) */ | ||
| .content-area { | ||
| -fx-background-color: light-colour; | ||
| -fx-padding: 10; | ||
| } | ||
|
|
||
| /* Top status bar */ | ||
| .top-bar { | ||
| -fx-background-color: light-green-colour; | ||
| -fx-padding: 8 12 8 12; | ||
| } | ||
|
|
||
| /* Text fields */ | ||
| .text-field { | ||
| -fx-background-radius: 4; | ||
| -fx-padding: 7 10 7 10; | ||
| -fx-background-color: green-colour; | ||
| -fx-text-fill: dark-colour; | ||
| -fx-prompt-text-fill: dark-colour; | ||
| -fx-border-width: 0; | ||
| } | ||
|
|
||
| /* Scroll panes (transparent so card shows through) */ | ||
| .scroll-pane { | ||
| -fx-background-color: transparent; | ||
| -fx-border-width: 0; | ||
| } | ||
|
|
||
| .scroll-pane > .viewport { | ||
| -fx-background-color: transparent; | ||
| } | ||
|
|
||
| /* Base button */ | ||
| .button { | ||
| -fx-font-size: 14px; | ||
| -fx-padding: 10 28 10 28; | ||
| -fx-background-radius: 4; | ||
| -fx-cursor: hand; | ||
| -fx-font-weight: bold; | ||
| -fx-border-style: solid; | ||
| -fx-border-width: 2px; | ||
| -fx-border-radius: 4; | ||
| -fx-background-color: dark-colour; | ||
| -fx-text-fill: light-colour; | ||
| -fx-border-color: dark-colour; | ||
| } | ||
|
|
||
| .button:hover { | ||
| -fx-text-fill: dark-colour; | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| /* Exit button */ | ||
| .exit-button { | ||
| -fx-background-color: dark-red-colour; | ||
| -fx-text-fill: light-colour; | ||
| -fx-border-color: dark-red-colour; | ||
| } | ||
|
|
||
| .exit-button:hover { | ||
| -fx-background-color: red-colour; | ||
| } | ||
|
|
||
| /* Browse button */ | ||
| .browse-button { | ||
| -fx-padding: 6 18 6 18; | ||
| -fx-font-size: 12px; | ||
| } | ||
|
|
||
| /* Table view */ | ||
| .table-view { | ||
| -fx-background-color: light-colour; | ||
| -fx-border-color: dark-colour; | ||
| -fx-border-width: 1; | ||
| } | ||
|
|
||
| .table-view .column-header-background { | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| .table-view .column-header .label { | ||
| -fx-text-fill: dark-colour; | ||
| -fx-font-weight: bold; | ||
| } | ||
|
|
||
| .table-view .table-row-cell { | ||
| -fx-background-color: light-colour; | ||
| -fx-border-color: transparent; | ||
| } | ||
|
|
||
| .table-view .table-row-cell:odd { | ||
| -fx-background-color: light-green-colour; | ||
| } | ||
|
|
||
| .table-view .table-row-cell:selected { | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| .table-view .table-row-cell:selected .text { | ||
| -fx-fill: dark-colour; | ||
| -fx-font-weight: bold; | ||
| } | ||
|
|
||
| /* Tab pane */ | ||
| .tab-pane { | ||
| -fx-background-color: light-colour; | ||
| } | ||
|
|
||
| .tab-pane .tab-header-area { | ||
| -fx-background-color: green-colour; | ||
| -fx-padding: 4 0 0 4; | ||
| } | ||
|
|
||
| .tab-pane .tab { | ||
| -fx-background-color: green-colour; | ||
| -fx-background-radius: 4 4 0 0; | ||
| -fx-padding: 5 16 5 16; | ||
| } | ||
|
|
||
| .tab-pane .tab:selected { | ||
| -fx-background-color: light-colour; | ||
| } | ||
|
|
||
| .tab-pane .tab .tab-label { | ||
| -fx-text-fill: dark-colour; | ||
| -fx-font-weight: bold; | ||
| -fx-font-size: 12px; | ||
| } | ||
|
|
||
| .tab-pane .tab-content-area { | ||
| -fx-background-color: light-colour; | ||
| -fx-padding: 0; | ||
| } | ||
|
|
||
| /* List view */ | ||
| .list-view { | ||
| -fx-background-color: light-colour; | ||
| -fx-border-color: green-colour; | ||
| } | ||
|
|
||
| .list-view .list-cell { | ||
| -fx-background-color: light-colour; | ||
| -fx-text-fill: dark-colour; | ||
| -fx-padding: 6 8; | ||
| } | ||
|
|
||
| .list-view .list-cell:odd { | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| .list-view .list-cell:selected { | ||
| -fx-background-color: dark-colour; | ||
| -fx-text-fill: light-colour; | ||
| } | ||
|
|
||
| /* ComboBox */ | ||
| .combo-box { | ||
| -fx-background-color: green-colour; | ||
| -fx-background-radius: 4; | ||
| -fx-text-fill: dark-colour; | ||
| } | ||
|
|
||
| .combo-box .list-cell { | ||
| -fx-text-fill: dark-colour; | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| .combo-box-popup .list-view .list-cell { | ||
| -fx-background-color: light-colour; | ||
| -fx-text-fill: dark-colour; | ||
| } | ||
|
|
||
| .combo-box-popup .list-view .list-cell:selected { | ||
| -fx-background-color: green-colour; | ||
| } | ||
|
|
||
| /* Separator */ | ||
| .separator .line { | ||
| -fx-border-color: dark-colour; | ||
| -fx-opacity: 0.4; | ||
| } |
Oops, something went wrong.