• SONAR
  • Just for fun ... Duckbar Theme Editor, day 2 (p.4)
2016/09/10 05:45:23
panup

Screen capture: Theme properties window (yeah, thats' me)
 
Preferred theme preview size seems to be 517 x 310 pixels (that's how SONAR shows it in preferences). I made loading preview image a bit easier
- Source image is not restricted to PNG. Use any image format Windows supports, including JPG. 
- If image is larger than 517 x 310, you can click the Fit button to scale it down. Image proportions are preserved and possible empty areas are filled with transparent ink.
- There's a also a clear button to remove preview image.  
 
Future plan: automatic preview image generator.
 
 
2016/09/10 17:28:00
panup

 
There will be a Control Bar in the Theme Editor. It can be hidden / shown by pressing the C button, just like in SONAR.
I also added a status bar. It shows always the active item name + other useful info.
 
Behind the scenes: almost every basic feature is now working. There are still glitches in the GUI but not anything severe. Editor seems to be pretty stable; I have added a lot of preventing checks to avoid unwanted states in the code.
I want to make a push button editor/composing tool to help making new 5-state (and others, too) buttons.  In my vision user draws one button image and then the tool generates buttons based on color settings, extra layers etc. There are probably many good and free button creators on the net but not a single one dedicated for SONAR (as far as I know).
 
Coming: I'll add Adjustment module in the Control bar for hue, saturation, lightness etc. tweaking for selected colors & images.
 
---
Example of one of "not so severe things to fix":
   ---clip---
       Dim msg As String = "You have not saved " & ThemeProperties.Name & "." & vbCrLf & "Do you want to save it now?"
   ---clip---
 
This looks fine if theme already has a name. Otherwise it shows:
"You have not saved  . Do you want to save it now?"
 
---
 
This is still fun --> project continues. :)
 
 
2016/09/10 18:06:51
Lord Tim
panup
OK, I got it.
I'll see what I can do... Maybe user theme needs to be marked internally as "Mercury factory theme". That's rude thing to do but may actually work. :)


I asked Noel about this a while back and he said that Mercury uses a completely different internal way to show track colour overlays, but they may revisit that in the future so custom themes can use it too.

Great work on your editor, man - looks amazing! :)
2016/09/11 05:11:36
soens
A guess would be the default theme (Mercury) is controlled, as in the past, internally in the .exe file. Whereas Tungsten and created themes are controlled separately in the respective .fth file putting them outside the realm of track color capability.
2016/09/11 10:44:58
southpaw3473
Thank you for all you've done for us Sonarites over the years, Panu!! I've been a dedicated user of your mods for years and years now and I really appreciate all the hard work you do!
2016/09/11 15:23:23
Zargg
Looking more and more forwards to this, Panu
Looks really nice
2016/09/11 15:35:05
mettelus
Batch processing... What a novel concept. Very nice work as always!

The hacker comment gave me a nice chuckle due to a single comment posted long ago.
2016/09/11 16:54:19
panup
The first test with the brand new Hue adjustment tool was successfull!
Now the real fun is beginning!   You can select any number of items (graphics / colors) and batch edit hue, saturation, lightness etc. in seconds. This is a HUGE timesaver compared to manual editing in external editor (unless you've got similar batch processing tools).

The standard Windows trackbar looks aged and ugly. I'll design custom control for that later.
 

Screen capture: The first Hue tool test.
 
2016/09/13 11:36:50
panup

 
Windows Trackbars are now replaced with self-made sliders. Style and behavior is copied directly from Photoshop. My control is not as smooth as Photoshop's -  hopefully it's the debug mode that has weaker performance. 

2016/09/13 13:56:32
patm300e
Nice!
BTW,
Dim msg As String = "You have not saved " & ThemeProperties.Name & "." & vbCrLf & "Do you want to save it now?"
 
Dim msg AsString = "You have not saved " & IIf(String.IsNullOrEmpty(ThemeProperties.Name), ", You will need to name the file." , ThemeProperties.Name & "." & vbCrLf & "Do you want to save it now?")
 
Or Something similar!  I realize you already know this
 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account