skincfg: save button style
git-svn-id: svn://kolibrios.org@7639 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
[main]
|
||||
bg=1
|
||||
|
||||
[bg]
|
||||
active=1
|
||||
program=/sys/media/fillscr
|
||||
param=105,145,200, 105,145,200, 105,145,200, 60,60,128, 82,102,164, 60,60,128, 60,60,128, 60,60,128, 60,60,128
|
||||
|
||||
@@ -8,7 +7,6 @@ param=105,145,200, 105,145,200, 105,145,200, 60,60,128, 82,102,164, 60,60,128, 6
|
||||
;param=\S__/rd/1/deink.png
|
||||
;T=tiled, S=stretched, C=centered
|
||||
|
||||
wallpaper=
|
||||
|
||||
3d=0
|
||||
skin=/rd1/1/default.skn
|
||||
[skin]
|
||||
3d=1
|
||||
file=/rd1/1/default.skn
|
||||
|
@@ -337,7 +337,6 @@ enum
|
||||
:unsigned char size[25];
|
||||
:dword ConvertSizeToKb(unsigned int bytes)
|
||||
{
|
||||
unsigned int kb;
|
||||
dword kb_line;
|
||||
|
||||
if (bytes >= 1024)
|
||||
|
@@ -1,6 +1,5 @@
|
||||
llist select_list;
|
||||
scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
|
||||
dword select_list_count_offset;
|
||||
|
||||
?define T_SELECT_LIST_NO_DATA "No data to show"
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
use32
|
||||
use32
|
@@ -108,6 +108,17 @@ else
|
||||
title db 'Windows settings',0
|
||||
end if
|
||||
;---------------------------------------------------------------------
|
||||
LibIniImportTable:
|
||||
library \
|
||||
libini, 'libini.obj'
|
||||
|
||||
import libini, \
|
||||
ini_set_int ,'ini_set_int'
|
||||
|
||||
aIni db '/sys/settings/eskin.ini',0
|
||||
aSectionSkn db 'skin',0
|
||||
aButtonStyle db '3d',0
|
||||
;---------------------------------------------------------------------
|
||||
l_libs_start:
|
||||
|
||||
library01 l_libs system_dir_Boxlib+9, cur_dir_path, library_path, system_dir_Boxlib, \
|
||||
@@ -132,6 +143,7 @@ err_message_import2 db 'proc_lib.obj - Wrong import!',0
|
||||
|
||||
;---------------------------------------------------------------------
|
||||
align 4
|
||||
|
||||
ProcLib_import:
|
||||
OpenDialog_Init dd aOpenDialog_Init
|
||||
OpenDialog_Start dd aOpenDialog_Start
|
||||
|
@@ -27,8 +27,10 @@
|
||||
dd cur_dir_path ; path to file
|
||||
|
||||
include 'lang.inc'
|
||||
include '../../../proc32.inc'
|
||||
include '../../../config.inc' ;for nightbuild
|
||||
include '../../../macros.inc'
|
||||
include '../../../dll.inc'
|
||||
include 'kglobals.inc'
|
||||
include 'unpacker.inc'
|
||||
include '../../../develop/libraries/box_lib/load_lib.mac'
|
||||
@@ -94,6 +96,7 @@ START: ; start of execution
|
||||
test eax,eax
|
||||
jz close
|
||||
|
||||
stdcall dll.Load,LibIniImportTable
|
||||
load_libraries l_libs_start,end_l_libs
|
||||
|
||||
;if return code =-1 then exit, else nornary work
|
||||
@@ -200,12 +203,14 @@ no_save:
|
||||
jne no_3d
|
||||
|
||||
mcall 48,1,1
|
||||
invoke ini_set_int, aIni, aSectionSkn, aButtonStyle, 1
|
||||
jmp doapply
|
||||
;--------------------------------------
|
||||
no_3d:
|
||||
cmp ah,15 ; set flat buttons
|
||||
jne no_flat
|
||||
|
||||
invoke ini_set_int, aIni, aSectionSkn, aButtonStyle, 0
|
||||
mcall 48, 1, 0
|
||||
;--------------------------------------
|
||||
doapply:
|
||||
|
Reference in New Issue
Block a user