Skip to content

Commit

Permalink
feat: configration接口实现 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknowIfGuestInDream committed Nov 17, 2022
1 parent 9077a3e commit 19abb23
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
15 changes: 15 additions & 0 deletions smc/src/main/java/com/tlcsdm/smc/SmcConfiguration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.tlcsdm.smc;

import java.util.Objects;

import com.tlcsdm.frame.FXSamplerConfiguration;

public class SmcConfiguration implements FXSamplerConfiguration {

@Override
public String getSceneStylesheet() {
return Objects.requireNonNull(getClass().getResource("/com/tlcsdm/smc/fxsampler/fxsampler.css"))
.toExternalForm();
}

}
1 change: 1 addition & 0 deletions smc/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
provides com.tlcsdm.frame.FXSamplerProject with com.tlcsdm.smc.SmcSamplerProject;
provides com.tlcsdm.frame.MenubarConfigration with com.tlcsdm.smc.SmcMenubarConfigration;
provides com.tlcsdm.frame.CenterPanelService with com.tlcsdm.smc.SmcCenterPanelService;
provides com.tlcsdm.frame.FXSamplerConfiguration with com.tlcsdm.smc.SmcConfiguration;
provides com.tlcsdm.login.LoginCheck with com.tlcsdm.smc.SmcLoginCheck;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.tlcsdm.smc.SmcConfiguration
39 changes: 39 additions & 0 deletions smc/src/main/resources/com/tlcsdm/smc/fxsampler/fxsampler.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.samples-tree {
-fx-background-color: -fx-outer-border, -fx-background;
-fx-background-insets: 0, 1;
-fx-background-radius: 2, 0;
}

.right-panel {
-fx-padding: 5;
}

.right-panel > .sample-name {
-fx-font-size: 18;
-fx-font-weight: bold;
}

.right-panel > .separator {
-fx-padding: 5 0 5 0;
}

.right-panel > .description {
-fx-text-alignment: justify;
}

.right-panel > * > .project-name-title,
.right-panel > * > .property {
-fx-font-weight: bold;
}

.right-panel > * > .project-name {
-fx-text-alignment: justify;
}

/*
* The area beneath the description specifically to allow people to interact with
* the sample.
*/
.right-panel > .control-panel {
-fx-padding: 5 0 0 0;
}

0 comments on commit 19abb23

Please sign in to comment.