Update Ring Notepad - Add New Style.
@@ -69,6 +69,7 @@ Class RNote from WindowsControllerParent
STYLECOLOR_WHITE = 1
STYLECOLOR_BLUE = 2
STYLECOLOR_BLACK = 3
+ STYLECOLOR_MODERN = 4
nDefaultStyle = STYLECOLOR_WHITE
cSettingsFile = cCurrentDir + "ringnotepad.ini"
@@ -425,6 +426,12 @@ Class RNote from WindowsControllerParent
settext("Fusion : Black")
}
addaction(oAction)
+ addseparator()
+ oAction = new qAction(this.win1) {
+ setclickEvent(Method("pSetStyleColor(4)"))
+ settext("Modern")
+ }
+ addaction(oAction)
}
}
subProgram {
@@ -722,7 +729,9 @@ Class RNote from WindowsControllerParent
}
this.RestoreSettings()
-
+ #if this.nDefaultStyle = this.STYLECOLOR_MODERN
+ #this.tree1.setstylesheet("color:black;background-color:rgba(230,230,230,255);")
+ #ok
exec()
}
@@ -1661,6 +1670,7 @@ Class RNote from WindowsControllerParent
on 1 pStyleWhite()
on 2 pStyleBlue()
on 3 pStyleBlack()
+ on 4 pStyleModern()
off
func pSetEditorColors
@@ -1751,3 +1761,33 @@ Class RNote from WindowsControllerParent
MyApp.StyleWindows()
ok
pStyleWhiteColors()
+
+ func pStyleModern()
+ nDefaultStyle = STYLECOLOR_MODERN
+ aCustomStyleColors = [
+ :LineNumbersAreaColor = new qcolor() { setrgb(143,144,138,255) },
+ :LineNumbersAreaBackColor = new qcolor() { setrgb(39,40,34,255) },
+ :ActiveLineBackColor = new qcolor() { setrgb(39,40,34,255) },
+ :SyntaxKeywordsColor = new qcolor() { setrgb(80,187,177,255) },
+ :SyntaxClassNamesColor = new qcolor() { setrgb(166,226,46,255) },
+ :SyntaxCommentsColor = new qcolor() { setrgb(117,113,94,255) },
+ :SyntaxLiteralsColor = new qcolor() { setrgb(230,191,77,255) },
+ :SyntaxFunctionCallsColor = new qcolor() { setrgb(150,138,62,255) }
+ ]
+ aStyleColors = aCustomStyleColors
+ aTextColor = [248,248,242]
+ aBackColor = [39,40,34]
+ MyApp.StylefusionCustom(
+ new qColor() { setrgb(230,230,230,255) },
+ new qColor() { setrgb(0,0,0,255) },
+ new qColor() { setrgb(230,230,230,255) },
+ new qColor() { setrgb(230,230,230,255) },
+ new qColor() { setrgb(0,0,0,255) },
+ new qColor() { setrgb(0,0,0,255) },
+ new qColor() { setrgb(0,0,0,255) },
+ new qColor() { setrgb(230,230,230,255) },
+ new qColor() { setrgb(0,0,0,255) },
+ new qColor() { setrgb(255,0,0,255) },
+ new qColor() { setrgb(142,45,197,255) },
+ new qColor() { setrgb(230,230,230,255)}
+ )
