-
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.
Started working on themes and saving settings.
- Loading branch information
Showing
15 changed files
with
141 additions
and
42 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package pl.andus.skeditor; | ||
|
||
public class Constants { | ||
static String version = "1.2"; | ||
static String version = "1.3"; | ||
} |
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
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,73 @@ | ||
package pl.andus.skeditor; | ||
|
||
import org.fife.ui.rsyntaxtextarea.Token; | ||
|
||
import java.awt.*; | ||
|
||
import static pl.andus.skeditor.Main.*; | ||
|
||
public class Themes { | ||
public static void Light() { | ||
// menu | ||
menuBar.setBackground(Color.white); | ||
// textarea | ||
textArea.setCurrentLineHighlightColor(new Color(255, 236, 121)); | ||
textArea.setBackground(Color.white); | ||
textArea.setForeground(Color.black); | ||
// text | ||
scheme.getStyle(Token.RESERVED_WORD).foreground = Color.blue; | ||
scheme.getStyle(Token.RESERVED_WORD_2).foreground = Color.orange; | ||
scheme.getStyle(Token.COMMENT_KEYWORD).foreground = Color.magenta; | ||
scheme.getStyle(Token.DATA_TYPE).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.OPERATOR).foreground = new Color(178, 51, 197); | ||
scheme.getStyle(Token.LITERAL_NUMBER_DECIMAL_INT).foreground = Color.lightGray; | ||
} | ||
|
||
public static void Dark() { | ||
// menu | ||
menuBar.setBackground(Color.darkGray); | ||
// textarea | ||
textArea.setCurrentLineHighlightColor(Color.gray); | ||
textArea.setBackground(Color.darkGray); | ||
textArea.setForeground(Color.white); | ||
//text | ||
scheme.getStyle(Token.RESERVED_WORD).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.RESERVED_WORD_2).foreground = Color.orange; | ||
scheme.getStyle(Token.COMMENT_KEYWORD).foreground = Color.magenta; | ||
scheme.getStyle(Token.DATA_TYPE).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.OPERATOR).foreground = new Color(178, 51, 197); | ||
scheme.getStyle(Token.LITERAL_NUMBER_DECIMAL_INT).foreground = Color.lightGray; | ||
} | ||
|
||
public static void NightSky(boolean dark) { | ||
if(dark) { | ||
// menu | ||
menuBar.setBackground(Color.darkGray); | ||
// textarea | ||
textArea.setCurrentLineHighlightColor(Color.gray); | ||
textArea.setBackground(Color.darkGray); | ||
textArea.setForeground(Color.white); | ||
//text | ||
scheme.getStyle(Token.RESERVED_WORD).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.RESERVED_WORD_2).foreground = Color.orange; | ||
scheme.getStyle(Token.COMMENT_KEYWORD).foreground = Color.magenta; | ||
scheme.getStyle(Token.DATA_TYPE).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.OPERATOR).foreground = new Color(178, 51, 197); | ||
scheme.getStyle(Token.LITERAL_NUMBER_DECIMAL_INT).foreground = Color.lightGray; | ||
} else { | ||
// menu | ||
menuBar.setBackground(Color.white); | ||
// textarea | ||
textArea.setCurrentLineHighlightColor(new Color(255, 236, 121)); | ||
textArea.setBackground(Color.white); | ||
textArea.setForeground(Color.black); | ||
// text | ||
scheme.getStyle(Token.RESERVED_WORD).foreground = Color.blue; | ||
scheme.getStyle(Token.RESERVED_WORD_2).foreground = Color.orange; | ||
scheme.getStyle(Token.COMMENT_KEYWORD).foreground = Color.magenta; | ||
scheme.getStyle(Token.DATA_TYPE).foreground = new Color(53, 154, 255); | ||
scheme.getStyle(Token.OPERATOR).foreground = new Color(178, 51, 197); | ||
scheme.getStyle(Token.LITERAL_NUMBER_DECIMAL_INT).foreground = Color.lightGray; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,5 @@ | ||
#Generated by Maven | ||
#Fri Sep 24 16:04:22 CEST 2021 | ||
version=1.1 | ||
groupId=pl.andus | ||
artifactId=SkriptEditor |
Empty file.
5 changes: 5 additions & 0 deletions
5
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
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,5 @@ | ||
C:\Users\Mr_an\Documents\Projekty\IdeaProjects\SkriptEditor\src\main\java\pl\andus\skeditor\Themes.java | ||
C:\Users\Mr_an\Documents\Projekty\IdeaProjects\SkriptEditor\src\main\java\pl\andus\skeditor\About.java | ||
C:\Users\Mr_an\Documents\Projekty\IdeaProjects\SkriptEditor\src\main\java\pl\andus\skeditor\Constants.java | ||
C:\Users\Mr_an\Documents\Projekty\IdeaProjects\SkriptEditor\src\main\java\pl\andus\skeditor\Main.java | ||
C:\Users\Mr_an\Documents\Projekty\IdeaProjects\SkriptEditor\src\main\java\pl\andus\skeditor\sksyntax.java |
Empty file.