Skip to content

Instantly share code, notes, and snippets.

@emreeren
Last active March 29, 2017 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emreeren/8f905783c1b40bb5e27d165a91642f36 to your computer and use it in GitHub Desktop.
Save emreeren/8f905783c1b40bb5e27d165a91642f36 to your computer and use it in GitHub Desktop.
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":false,"Description":"Koyu veya Açık renk temayı etkinleştirin. Varsayılan masa ve menü renkleri de temaya uygun olarak değiştirilecektir.","Language":"tr","Name":"Tema Değiştir","SortOrder":40,"TaskData":"[{\"Action\":\"[?Tema Seçin:Açık|Koyu:Açık|Koyu]\",\"ActionType\":4,\"Condition\":null,\"Description\":\"Initialize Parameters\"},{\"Action\":\"function UpdateColor(name,oldColor,newColor)\\u000d\\u000a{\\u000d\\u000a sql.ExecSql(\\\"Update States set Color = '\\\"+newColor+\\\"' where Name = N'\\\"+name+\\\"' and Color = '\\\"+oldColor+\\\"'\\\");\\u000d\\u000a}\\u000d\\u000a\\u000d\\u000afunction UpdateMenuItem(oldColor,newColor)\\u000d\\u000a{\\u000d\\u000a sql.ExecSql(\\\"Update ScreenMenuCategories set MenuItemButtonColor = '\\\"+newColor+\\\"' where MenuItemButtonColor = '\\\"+oldColor+\\\"'\\\");\\u000d\\u000a}\\u000d\\u000a\\u000d\\u000afunction UpdateMenuCategory(oldColor,newColor)\\u000d\\u000a{\\u000d\\u000a sql.ExecSql(\\\"Update ScreenMenuCategories set MainButtonColor = '\\\"+newColor+\\\"' where MainButtonColor = '\\\"+oldColor+\\\"'\\\");\\u000d\\u000a}\\u000d\\u000a\\u000d\\u000aif('[:Tema Seçin]' == 'Koyu')\\u000d\\u000a{\\u000d\\u000a theme.UseDark();\\u000d\\u000a UpdateColor('Hazır','White','#FF3F3F3F');\\u000d\\u000a UpdateColor('Yeni Siparişler','Orange','#FFEE8D3D');\\u000d\\u000a UpdateColor('Adisyon İstendi','Maroon','#FFAA3A37');\\u000d\\u000a UpdateMenuItem('Green','#FF76923C');\\u000d\\u000a UpdateMenuCategory('Orange','#FFF79646');\\u000d\\u000a}\\u000d\\u000aelse\\u000d\\u000a{\\u000d\\u000a theme.UseLight();\\u000d\\u000a UpdateColor('Hazır','#FF3F3F3F','White');\\u000d\\u000a UpdateColor('Yeni Siparişler','#FFEE8D3D','Orange');\\u000d\\u000a UpdateColor('Adisyon İstendi','#FFAA3A37','Maroon');\\u000d\\u000a UpdateMenuItem('#FF76923C','Green');\\u000d\\u000a UpdateMenuCategory('#FFF79646','Orange');\\u000d\\u000a}\\u000d\\u000a\\u000d\\u000adlg.ShowMessage(\\\"Yeni temayı etkinleştirmek için SambaPOS'u yeniden başlatın.\\\");\",\"ActionType\":1,\"Condition\":null,\"Description\":\"Update Theme\"}]"}],"AutomationCommands":null,"CalculationSelectors":null,"CalculationTypes":null,"ChangePaymentTypes":null,"CustomReports":null,"Departments":null,"EntityScreens":null,"EntityTypes":null,"Numerators":null,"OrderTagGroups":null,"PaymentTypes":null,"PrintJobs":null,"PrinterTemplates":null,"Printers":null,"ProgramSettingValues":null,"Rules":null,"Scripts":null,"States":null,"TaskTypes":null,"TicketTagGroups":null,"TicketTypes":null,"Triggers":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment