Merge pull request #193 from cuu/gcores

Gcores  cursor color and icons
This commit is contained in:
GNU 2019-05-05 16:08:59 +08:00 committed by GitHub
commit 52c1d12029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 602 B

View File

@ -122,7 +122,7 @@ class Textarea(Widget):
linenumber = 0 linenumber = 0
self._TextFull = len(self._MyWords) > self._TextLimit self._TextFull = len(self._MyWords) > self._TextLimit
for i, v in enumerate(self._BlitWords): for i, v in enumerate(self._BlitWords):
t = self._FontObj.render(v,True,(8,135,174)) t = self._FontObj.render(v,True,MySkinManager.GiveColor("Text"))
w += t.get_width() w += t.get_width()
if w >= self._Width-endmargin and linenumber == 0: if w >= self._Width-endmargin and linenumber == 0:
@ -142,7 +142,7 @@ class Textarea(Widget):
y = self._PosY y = self._PosY
linenumber = 0 linenumber = 0
for i,v in enumerate(self._BlitWords[:self._BlitIndex]): for i,v in enumerate(self._BlitWords[:self._BlitIndex]):
t = self._FontObj.render(v,True,(8,135,174)) t = self._FontObj.render(v,True,MySkinManager.GiveColor("Text"))
w += t.get_width() w += t.get_width()
if w >= self._Width-endmargin and linenumber == 0: if w >= self._Width-endmargin and linenumber == 0:
@ -156,7 +156,7 @@ class Textarea(Widget):
break break
x += t.get_width() x += t.get_width()
self._CanvasHWND.blit(self._FontObj.render("_",True,(0,0,0)),(x+1,y-2)) self._CanvasHWND.blit(self._FontObj.render("_",True,MySkinManager.GiveColor("Text")),(x+1,y-2))
def Draw(self): def Draw(self):
#aa_round_rect(self._CanvasHWND, (4,24.5+6,312,60),self._BackgroundColor,4,0,self._BackgroundColor) #aa_round_rect(self._CanvasHWND, (4,24.5+6,312,60),self._BackgroundColor,4,0,self._BackgroundColor)