Merge pull request #189 from cuu/gcores

...
This commit is contained in:
GNU 2019-05-05 14:01:27 +08:00 committed by GitHub
commit 51f62ea575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 15 deletions

View File

@ -2,7 +2,7 @@
import os
import pygame
from libs.roundrects import aa_round_rect
#from libs.roundrects import aa_round_rect
## local UI import
from UI.constants import Width,Height,ICON_TYPES

View File

@ -3,7 +3,7 @@ import os
import pygame
import gobject
from libs.roundrects import aa_round_rect
#from libs.roundrects import aa_round_rect
## local UI import
from UI.constants import Width,Height,ICON_TYPES

View File

@ -4,7 +4,7 @@ import os
import pygame
import glob
import time
from libs.roundrects import aa_round_rect
#from libs.roundrects import aa_round_rect
## local UI import
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
@ -52,7 +52,7 @@ class FavStack:
return len(self.stack)
class ListPageSelector(PageSelector):
_BackgroundColor = MySkinManager.GiveColor('Front')
_BackgroundColor = MySkinManager.GiveColor('Line')
def __init__(self):
self._PosX = 0
@ -82,9 +82,9 @@ class ListPageSelector(PageSelector):
self._PosY = y
self._Height = h
aa_round_rect(self._Parent._CanvasHWND,
(x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
#aa_round_rect(self._Parent._CanvasHWND,
# (x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
pygame.draw.rect(self._Parent._CanvasHWND,self._BackgroundColor,(x,y,self._Width-4,h),0)
class FavListPage(Page):
@ -231,7 +231,7 @@ class FavListPage(Page):
bgpng._MyType = ICON_TYPES["STAT"]
bgpng._Parent = self
bgpng.AddLabel(MyLangManager.Tr("MyFavGames"), MyLangManager.TrFont("varela18"))
bgpng.SetLableColor(MySkinManager.GiveColor('Disabled'))
bgpng.SetLableColor(MySkinManager.GiveColor('Text'))
bgpng.Adjust(0,0,self._BGwidth,self._BGheight,0)
self._Icons["bg"] = bgpng

View File

@ -11,7 +11,7 @@ import validators
#from pySmartDL import SmartDL
import time
from libs.roundrects import aa_round_rect
#from libs.roundrects import aa_round_rect
## local UI import
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
@ -59,7 +59,7 @@ class RomStack:
return len(self.stack)
class ListPageSelector(PageSelector):
_BackgroundColor = MySkinManager.GiveColor('Front')
_BackgroundColor = MySkinManager.GiveColor('Line')
def __init__(self):
self._PosX = 0
@ -89,8 +89,9 @@ class ListPageSelector(PageSelector):
self._PosY = y
self._Height = h
aa_round_rect(self._Parent._CanvasHWND,
(x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
# aa_round_rect(self._Parent._CanvasHWND,
# (x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
pygame.draw.rect(self._Parent._CanvasHWND,self._BackgroundColor,(x,y,self._Width-4,h),0)
@ -264,8 +265,8 @@ class RomListPage(Page):
bgpng._ImgSurf = MyIconPool._Icons["empty"]
bgpng._MyType = ICON_TYPES["STAT"]
bgpng._Parent = self
bgpng.AddLabel(MyLangManager.Tr("Please upload data over Wi-Fi"), MyLangManager.TrFont("varela22"))
bgpng.SetLableColor(MySkinManager.GiveColor('Disabled'))
bgpng.AddLabel(MyLangManager.Tr("Please upload data over Wi-Fi"), MyLangManager.TrFont("varela18"))
bgpng.SetLableColor(MySkinManager.GiveColor('Text'))
bgpng.Adjust(0,0,self._BGwidth,self._BGheight,0)
self._Icons["bg"] = bgpng

View File

@ -10,7 +10,7 @@ import gobject
import validators
#from pySmartDL import SmartDL
from libs.roundrects import aa_round_rect
#from libs.roundrects import aa_round_rect
from UI.confirm_page import ConfirmPage
from UI.download_process_page import DownloadProcessPage