Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{"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
You can’t perform that action at this time.