Move around icons and add an icons folder to assets

This commit is contained in:
Veronica K. B. Olsen
2019-11-08 18:48:56 +01:00
parent 69bfb4a209
commit 7b3d42918d
5 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ instOpt = [
"--onefile",
"--add-data=%s%s%s" % (os.path.join("nw", "themes"), dotDot,"themes"),
"--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:
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
View File
@@ -54,6 +54,7 @@ class Config:
self.themeRoot = None
self.graphPath = None
self.dictPath = None
self.iconPath = None
# Set default values
self.confChanged = False
@@ -61,6 +62,7 @@ class Config:
## General
self.guiTheme = "default"
self.guiSyntax = "default_light"
self.guiDark = False
## Sizes
self.winGeometry = [1100, 650]
@@ -175,7 +177,8 @@ class Config:
self.themeRoot = path.join(self.assetPath,"themes")
self.graphPath = path.join(self.assetPath,"graphics")
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.
# This assumes that the os config folder itself exists.
@@ -224,6 +227,9 @@ class Config:
self.guiSyntax = self._parseLine(
cnfParse, cnfSec, "syntax", self.CNF_STR, self.guiSyntax
)
self.guiDark = self._parseLine(
cnfParse, cnfSec, "guidark", self.CNF_BOOL, self.guiDark
)
## 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,"theme", str(self.guiTheme))
cnfParse.set(cnfSec,"syntax", str(self.guiSyntax))
cnfParse.set(cnfSec,"guidark", str(self.guiDark))
## Sizes
cnfSec = "Sizes"
+2 -1
View File
@@ -1,7 +1,8 @@
[Main]
timestamp = 2019-11-08 00:27:54
timestamp = 2019-11-08 18:43:21
theme = default
syntax = default_light
guidark = False
[Sizes]
geometry = 1100, 650