kolibrios/programs/cmm/txtread/ini.h
Kirill Lipatov (Leency) b38cab6054 icons16.png: small colors tweak to bring them into the common gamma
eng/settings/menu.dat: general update, sunc with rus
/data/rus/pipetka: remove as it is closed-source and replace by
pipet: add to IMG/develop/pipet (open-source, copy to clipboard function)
cmm/lib/io.h: fix library function
ircc: add 'x' to the close button, update tab colors to fix low contrast on some skins

git-svn-id: svn://kolibrios.org@7889 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-07 15:43:50 +00:00

23 lines
690 B
C

_ini ini = { "/sys/settings/app.ini", "Txtread" };
void LoadIniSettings()
{
kfont.size.pt = ini.GetInt("FontSize", 13);
encoding = ini.GetInt("Encoding", CH_AUTO);
curcol_scheme = ini.GetInt("ColorScheme", 2);
Form.left = ini.GetInt("WinX", 150);
Form.top = ini.GetInt("WinY", 50);
Form.width = ini.GetInt("WinW", 640);
Form.height = ini.GetInt("WinH", 560);
}
void SaveIniSettings()
{
ini.SetInt("FontSize", kfont.size.pt);
ini.SetInt("Encoding", encoding);
ini.SetInt("ColorScheme", curcol_scheme);
ini.SetInt("WinX", Form.left);
ini.SetInt("WinY", Form.top);
ini.SetInt("WinW", Form.width);
ini.SetInt("WinH", Form.height);
}