mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 18:28:50 +01:00
...
This commit is contained in:
parent
ee88a3170b
commit
3c88f42924
@ -2,7 +2,7 @@
|
|||||||
import os
|
import os
|
||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
from libs.roundrects import aa_round_rect
|
#from libs.roundrects import aa_round_rect
|
||||||
|
|
||||||
## local UI import
|
## local UI import
|
||||||
from UI.constants import Width,Height,ICON_TYPES
|
from UI.constants import Width,Height,ICON_TYPES
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import os
|
|||||||
import pygame
|
import pygame
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from libs.roundrects import aa_round_rect
|
#from libs.roundrects import aa_round_rect
|
||||||
|
|
||||||
## local UI import
|
## local UI import
|
||||||
from UI.constants import Width,Height,ICON_TYPES
|
from UI.constants import Width,Height,ICON_TYPES
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import os
|
|||||||
import pygame
|
import pygame
|
||||||
import glob
|
import glob
|
||||||
import time
|
import time
|
||||||
from libs.roundrects import aa_round_rect
|
#from libs.roundrects import aa_round_rect
|
||||||
|
|
||||||
## local UI import
|
## local UI import
|
||||||
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
|
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
|
||||||
@ -52,7 +52,7 @@ class FavStack:
|
|||||||
return len(self.stack)
|
return len(self.stack)
|
||||||
|
|
||||||
class ListPageSelector(PageSelector):
|
class ListPageSelector(PageSelector):
|
||||||
_BackgroundColor = MySkinManager.GiveColor('Front')
|
_BackgroundColor = MySkinManager.GiveColor('Line')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._PosX = 0
|
self._PosX = 0
|
||||||
@ -82,9 +82,9 @@ class ListPageSelector(PageSelector):
|
|||||||
self._PosY = y
|
self._PosY = y
|
||||||
self._Height = h
|
self._Height = h
|
||||||
|
|
||||||
aa_round_rect(self._Parent._CanvasHWND,
|
#aa_round_rect(self._Parent._CanvasHWND,
|
||||||
(x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
|
# (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):
|
class FavListPage(Page):
|
||||||
@ -231,7 +231,7 @@ class FavListPage(Page):
|
|||||||
bgpng._MyType = ICON_TYPES["STAT"]
|
bgpng._MyType = ICON_TYPES["STAT"]
|
||||||
bgpng._Parent = self
|
bgpng._Parent = self
|
||||||
bgpng.AddLabel(MyLangManager.Tr("MyFavGames"), MyLangManager.TrFont("varela18"))
|
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)
|
bgpng.Adjust(0,0,self._BGwidth,self._BGheight,0)
|
||||||
|
|
||||||
self._Icons["bg"] = bgpng
|
self._Icons["bg"] = bgpng
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import validators
|
|||||||
#from pySmartDL import SmartDL
|
#from pySmartDL import SmartDL
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from libs.roundrects import aa_round_rect
|
#from libs.roundrects import aa_round_rect
|
||||||
|
|
||||||
## local UI import
|
## local UI import
|
||||||
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
|
from UI.constants import Width,Height,ICON_TYPES,RUNEVT
|
||||||
@ -59,7 +59,7 @@ class RomStack:
|
|||||||
return len(self.stack)
|
return len(self.stack)
|
||||||
|
|
||||||
class ListPageSelector(PageSelector):
|
class ListPageSelector(PageSelector):
|
||||||
_BackgroundColor = MySkinManager.GiveColor('Front')
|
_BackgroundColor = MySkinManager.GiveColor('Line')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._PosX = 0
|
self._PosX = 0
|
||||||
@ -89,8 +89,9 @@ class ListPageSelector(PageSelector):
|
|||||||
self._PosY = y
|
self._PosY = y
|
||||||
self._Height = h
|
self._Height = h
|
||||||
|
|
||||||
aa_round_rect(self._Parent._CanvasHWND,
|
# aa_round_rect(self._Parent._CanvasHWND,
|
||||||
(x,y,self._Width-4,h),self._BackgroundColor,4,0,self._BackgroundColor)
|
# (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._ImgSurf = MyIconPool._Icons["empty"]
|
||||||
bgpng._MyType = ICON_TYPES["STAT"]
|
bgpng._MyType = ICON_TYPES["STAT"]
|
||||||
bgpng._Parent = self
|
bgpng._Parent = self
|
||||||
bgpng.AddLabel(MyLangManager.Tr("Please upload data over Wi-Fi"), MyLangManager.TrFont("varela22"))
|
bgpng.AddLabel(MyLangManager.Tr("Please upload data over Wi-Fi"), MyLangManager.TrFont("varela18"))
|
||||||
bgpng.SetLableColor(MySkinManager.GiveColor('Disabled'))
|
bgpng.SetLableColor(MySkinManager.GiveColor('Text'))
|
||||||
bgpng.Adjust(0,0,self._BGwidth,self._BGheight,0)
|
bgpng.Adjust(0,0,self._BGwidth,self._BGheight,0)
|
||||||
|
|
||||||
self._Icons["bg"] = bgpng
|
self._Icons["bg"] = bgpng
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import gobject
|
|||||||
import validators
|
import validators
|
||||||
#from pySmartDL import SmartDL
|
#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.confirm_page import ConfirmPage
|
||||||
from UI.download_process_page import DownloadProcessPage
|
from UI.download_process_page import DownloadProcessPage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user