View Single Post
Old 07-17-2018, 01:15 PM   #137
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by jackie_w View Post
I've got 4 different models which I'm still patching every fw update. That sounds like I'd need 4 different configurations instead of the single one I currently have. It sounds like more work.
I realy prefer to make a device dedicated one versus worldwide one.

It depends on the patch and/or the value of parameter/variable. If you pass a number of devices as parameter the patch will made for those devices. If you don't pass a parameter (or var is null) the program acts as now.

This could be a comparative
Spoiler:
Code:
  - FindZlib: "#connectedPixmap {"
  - ReplaceZlib:
      Find:    "#title[qApp_deviceIsTrilogy=true] {\n  font-size: 29px;\n}\n#title[qApp_deviceIsPhoenix=true] {\n  font-size: 36px;\n}\n#title[qApp_deviceIsDragon=true] {\n  font-size: 46px;\n}\n#title[qApp_deviceIsDaylight=true] {\n  font-size: 60px;\n}"
#      Replace: "#title[qApp_deviceIsTrilogy=true]{font-size:33px;}"
#      Replace: "#title[qApp_deviceIsPhoenix=true]{font-size:39px;}"
#      Replace: "#title[qApp_deviceIsDragon=true]{font-size:49px;}"
      Replace: "#title[qApp_deviceIsDaylight=true]{font-size:60px;}"

  - FindZlib: "#connectedPixmap {"
  - ReplaceZlib:
      Find:    "#title[qApp_deviceIsTrilogy=true] {\n  font-size: 29px;\n}\n#title[qApp_deviceIsPhoenix=true] {\n  font-size: 36px;\n}\n#title[qApp_deviceIsDragon=true] {\n  font-size: 46px;\n}\n#title[qApp_deviceIsDaylight=true] {\n  font-size: 60px;\n}"
      Replace: "#title[qApp_deviceIs{{device}}=true] !If [AuraOne, {font-size:60px;}, [Dragon, {font-size:49px;}, [Phoenix, {font-size:39px;}, {font-size:33px;}]]]"

In the first case (now) the user must go patch by patch changing the value he/she wants. In the second one he/she only must say the device once.
I think it's pretty simple for the common user.

Good luck.
jcn363 is offline   Reply With Quote