mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
重写controller部分,修改search界面,添加歌词滚动效果,部分资源添加到bundle,修复拖动进度条时产生的噪音
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
package resource
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/config"
|
||||
"io/ioutil"
|
||||
)
|
||||
//var ProgramIcon = []byte{}
|
||||
//var EmptyImage = []byte{}
|
||||
//
|
||||
//func init() {
|
||||
// loadResource(config.GetAssetPath("icon.jpg"), &ProgramIcon)
|
||||
// loadResource(config.GetAssetPath("empty.png"), &EmptyImage)
|
||||
//}
|
||||
//
|
||||
//func loadResource(path string, res *[]byte) {
|
||||
// if file, err := ioutil.ReadFile(path); err == nil {
|
||||
// *res = file
|
||||
// }
|
||||
//}
|
||||
|
||||
var ProgramIcon = []byte{}
|
||||
var EmptyImage = []byte{}
|
||||
|
||||
func init() {
|
||||
loadResource(config.GetAssetPath("icon.jpg"), &ProgramIcon)
|
||||
loadResource(config.GetAssetPath("empty.png"), &EmptyImage)
|
||||
}
|
||||
|
||||
func loadResource(path string, res *[]byte) {
|
||||
if file, err := ioutil.ReadFile(path); err == nil {
|
||||
*res = file
|
||||
}
|
||||
}
|
||||
var ImageEmpty = resImageEmpty
|
||||
var ImageIcon = resImageIcon
|
||||
var FontMSYaHei = resFontMSYaHei
|
||||
var FontMSYaHeiBold = resFontMSYaHeiBold
|
||||
|
||||
Reference in New Issue
Block a user