Move around icons and add an icons folder to assets
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ instOpt = [
|
|||||||
"--onefile",
|
"--onefile",
|
||||||
"--add-data=%s%s%s" % (os.path.join("nw", "themes"), dotDot,"themes"),
|
"--add-data=%s%s%s" % (os.path.join("nw", "themes"), dotDot,"themes"),
|
||||||
"--add-data=%s%s%s" % (os.path.join("nw", "graphics"),dotDot,"graphics"),
|
"--add-data=%s%s%s" % (os.path.join("nw", "graphics"),dotDot,"graphics"),
|
||||||
"--icon=%s" % os.path.join("nw", "graphics", "novelWriter.ico"),
|
"--icon=%s" % os.path.join("nw", "assets", "icons", "novelWriter.ico"),
|
||||||
]
|
]
|
||||||
if buildWindowed:
|
if buildWindowed:
|
||||||
instOpt.append("--windowed")
|
instOpt.append("--windowed")
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
+8
-1
@@ -54,6 +54,7 @@ class Config:
|
|||||||
self.themeRoot = None
|
self.themeRoot = None
|
||||||
self.graphPath = None
|
self.graphPath = None
|
||||||
self.dictPath = None
|
self.dictPath = None
|
||||||
|
self.iconPath = None
|
||||||
|
|
||||||
# Set default values
|
# Set default values
|
||||||
self.confChanged = False
|
self.confChanged = False
|
||||||
@@ -61,6 +62,7 @@ class Config:
|
|||||||
## General
|
## General
|
||||||
self.guiTheme = "default"
|
self.guiTheme = "default"
|
||||||
self.guiSyntax = "default_light"
|
self.guiSyntax = "default_light"
|
||||||
|
self.guiDark = False
|
||||||
|
|
||||||
## Sizes
|
## Sizes
|
||||||
self.winGeometry = [1100, 650]
|
self.winGeometry = [1100, 650]
|
||||||
@@ -175,7 +177,8 @@ class Config:
|
|||||||
self.themeRoot = path.join(self.assetPath,"themes")
|
self.themeRoot = path.join(self.assetPath,"themes")
|
||||||
self.graphPath = path.join(self.assetPath,"graphics")
|
self.graphPath = path.join(self.assetPath,"graphics")
|
||||||
self.dictPath = path.join(self.assetPath,"dict")
|
self.dictPath = path.join(self.assetPath,"dict")
|
||||||
self.appIcon = path.join(self.graphPath, nwFiles.APP_ICON)
|
self.iconPath = path.join(self.assetPath,"icons")
|
||||||
|
self.appIcon = path.join(self.iconPath, nwFiles.APP_ICON)
|
||||||
|
|
||||||
# If config folder does not exist, make it.
|
# If config folder does not exist, make it.
|
||||||
# This assumes that the os config folder itself exists.
|
# This assumes that the os config folder itself exists.
|
||||||
@@ -224,6 +227,9 @@ class Config:
|
|||||||
self.guiSyntax = self._parseLine(
|
self.guiSyntax = self._parseLine(
|
||||||
cnfParse, cnfSec, "syntax", self.CNF_STR, self.guiSyntax
|
cnfParse, cnfSec, "syntax", self.CNF_STR, self.guiSyntax
|
||||||
)
|
)
|
||||||
|
self.guiDark = self._parseLine(
|
||||||
|
cnfParse, cnfSec, "guidark", self.CNF_BOOL, self.guiDark
|
||||||
|
)
|
||||||
|
|
||||||
## Sizes
|
## Sizes
|
||||||
cnfSec = "Sizes"
|
cnfSec = "Sizes"
|
||||||
@@ -358,6 +364,7 @@ class Config:
|
|||||||
cnfParse.set(cnfSec,"timestamp", datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
cnfParse.set(cnfSec,"timestamp", datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
||||||
cnfParse.set(cnfSec,"theme", str(self.guiTheme))
|
cnfParse.set(cnfSec,"theme", str(self.guiTheme))
|
||||||
cnfParse.set(cnfSec,"syntax", str(self.guiSyntax))
|
cnfParse.set(cnfSec,"syntax", str(self.guiSyntax))
|
||||||
|
cnfParse.set(cnfSec,"guidark", str(self.guiDark))
|
||||||
|
|
||||||
## Sizes
|
## Sizes
|
||||||
cnfSec = "Sizes"
|
cnfSec = "Sizes"
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
[Main]
|
[Main]
|
||||||
timestamp = 2019-11-08 00:27:54
|
timestamp = 2019-11-08 18:43:21
|
||||||
theme = default
|
theme = default
|
||||||
syntax = default_light
|
syntax = default_light
|
||||||
|
guidark = False
|
||||||
|
|
||||||
[Sizes]
|
[Sizes]
|
||||||
geometry = 1100, 650
|
geometry = 1100, 650
|
||||||
|
|||||||
Reference in New Issue
Block a user