Provide some resources.
This commit is contained in:
parent
f4904e5ec4
commit
5b7ca43baf
13 changed files with 112 additions and 10 deletions
BIN
fonts/OpenSans-Bold.ttf
Normal file
BIN
fonts/OpenSans-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/OpenSans-Regular.ttf
Normal file
BIN
fonts/OpenSans-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/OpenSans-Semibold.ttf
Normal file
BIN
fonts/OpenSans-Semibold.ttf
Normal file
Binary file not shown.
7
fonts/fonts.qrc
Normal file
7
fonts/fonts.qrc
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/gui/fonts">
|
||||||
|
<file>OpenSans-Regular.ttf</file>
|
||||||
|
<file>OpenSans-Bold.ttf</file>
|
||||||
|
<file>OpenSans-Semibold.ttf</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
|
|
@ -5,6 +5,34 @@
|
||||||
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
||||||
|
|
||||||
{
|
{
|
||||||
|
'variables': {
|
||||||
|
'qrc_files': [
|
||||||
|
'<(submodules_loc)/lib_ui/fonts/fonts.qrc',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
'conditions': [
|
||||||
|
[ 'build_linux', {
|
||||||
|
'variables': {
|
||||||
|
'qrc_files': [
|
||||||
|
'<(submodules_loc)/lib_ui/qt_conf/linux.qrc',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
[ 'build_mac', {
|
||||||
|
'variables': {
|
||||||
|
'qrc_files': [
|
||||||
|
'<(submodules_loc)/lib_ui/qt_conf/mac.qrc',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
[ 'build_win', {
|
||||||
|
'variables': {
|
||||||
|
'qrc_files': [
|
||||||
|
'<(submodules_loc)/lib_ui/qt_conf/win.qrc',
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
],
|
||||||
'actions': [{
|
'actions': [{
|
||||||
'action_name': 'update_dependent_qrc',
|
'action_name': 'update_dependent_qrc',
|
||||||
'inputs': [
|
'inputs': [
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ def list_qrc_dependencies(file_path):
|
||||||
dependencies = get_qrc_dependencies(file_path)
|
dependencies = get_qrc_dependencies(file_path)
|
||||||
for path in dependencies:
|
for path in dependencies:
|
||||||
print(path)
|
print(path)
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
one_modified = 0
|
one_modified = 0
|
||||||
def handle_qrc_dependencies(file_path):
|
def handle_qrc_dependencies(file_path):
|
||||||
|
|
@ -160,6 +159,7 @@ elif request == 'qrc':
|
||||||
elif request == 'qrc_list':
|
elif request == 'qrc_list':
|
||||||
for file_path in file_paths:
|
for file_path in file_paths:
|
||||||
list_qrc_dependencies(file_path)
|
list_qrc_dependencies(file_path)
|
||||||
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
eprint('Request required.')
|
eprint('Request required.')
|
||||||
|
|
||||||
|
|
|
||||||
57
qt_conf/fc-custom.conf
Normal file
57
qt_conf/fc-custom.conf
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?xml version='1.0'?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||||
|
<fontconfig>
|
||||||
|
<dir>/usr/share/fonts</dir>
|
||||||
|
<dir>/usr/local/share/fonts</dir>
|
||||||
|
<dir>~/.fonts</dir>
|
||||||
|
<dir>~/.local/share/fonts</dir>
|
||||||
|
<dir>/usr/X11R6/lib/X11/fonts</dir>
|
||||||
|
<dir prefix="xdg">fonts</dir>
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family">
|
||||||
|
<string>mono</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="assign" binding="same">
|
||||||
|
<string>monospace</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family">
|
||||||
|
<string>sans serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="assign" binding="same">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family">
|
||||||
|
<string>sans</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="assign" binding="same">
|
||||||
|
<string>sans-serif</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<cachedir>/var/cache/fontconfig_11</cachedir>
|
||||||
|
<cachedir prefix="xdg">fontconfig_11</cachedir>
|
||||||
|
<cachedir>~/.fontconfig_11</cachedir>
|
||||||
|
<match target="font">
|
||||||
|
<edit mode="assign" name="antialias">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
<edit mode="assign" name="embeddedbitmap">
|
||||||
|
<bool>false</bool>
|
||||||
|
</edit>
|
||||||
|
<edit mode="assign" name="hinting">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
<edit mode="assign" name="hintstyle">
|
||||||
|
<const>hintslight</const>
|
||||||
|
</edit>
|
||||||
|
<edit mode="assign" name="lcdfilter">
|
||||||
|
<const>lcddefault</const>
|
||||||
|
</edit>
|
||||||
|
<edit mode="assign" name="rgba">
|
||||||
|
<const>rgb</const>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
8
qt_conf/linux.qrc
Normal file
8
qt_conf/linux.qrc
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/qt/etc">
|
||||||
|
<file alias="qt.conf">qt_linux.conf</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="/fc">
|
||||||
|
<file>fc-custom.conf</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
2
qt_conf/mac.qrc
Normal file
2
qt_conf/mac.qrc
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<RCC>
|
||||||
|
</RCC>
|
||||||
2
qt_conf/qt_linux.conf
Normal file
2
qt_conf/qt_linux.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Paths]
|
||||||
|
Libraries=:/gui/art
|
||||||
2
qt_conf/qt_win.conf
Normal file
2
qt_conf/qt_win.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Platforms]
|
||||||
|
WindowsArguments = nomousefromtouch
|
||||||
5
qt_conf/win.qrc
Normal file
5
qt_conf/win.qrc
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/qt/etc">
|
||||||
|
<file alias="qt.conf">qt_win.conf</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
|
|
@ -249,15 +249,6 @@ radialSize: size(50px, 50px);
|
||||||
radialLine: 3px;
|
radialLine: 3px;
|
||||||
radialDuration: 350;
|
radialDuration: 350;
|
||||||
radialPeriod: 3000;
|
radialPeriod: 3000;
|
||||||
|
|
||||||
youtubeIcon: icon {
|
|
||||||
{ "media_youtube_play_bg", youtubePlayIconBg },
|
|
||||||
{ "media_youtube_play", youtubePlayIconFg, point(24px, 12px) },
|
|
||||||
};
|
|
||||||
videoIcon: icon {
|
|
||||||
{ "media_video_play_bg", videoPlayIconBg },
|
|
||||||
{ "media_video_play", videoPlayIconFg, point(12px, 12px) },
|
|
||||||
};
|
|
||||||
locationSize: size(320px, 240px);
|
locationSize: size(320px, 240px);
|
||||||
|
|
||||||
mediaPlayerSuppressDuration: 150;
|
mediaPlayerSuppressDuration: 150;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue