Author Topic: Modifying stuff in com_slickedit.base.zip  (Read 2465 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2433
  • Hero Points: 202
  • Text
Modifying stuff in com_slickedit.base.zip
« on: February 20, 2018, 03:44:13 pm »
What is a convenient way to modify and test changes to files in com_slickedit.base.zip?
Just unzip the whole thing and place it in plugins?

If I want to modify just one file can I do that without unpacking the whole thing?
Or without replacing the whole thing?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6128
  • Hero Points: 470
Re: Modifying stuff in com_slickedit.base.zip
« Reply #1 on: February 20, 2018, 03:53:29 pm »
You shouldn't need to modify anything in com_slickedit.base.zip. You can override what's in there in your local config (user.cfg.xml).

jporkkahtc

  • Senior Community Member
  • Posts: 2433
  • Hero Points: 202
  • Text
Re: Modifying stuff in com_slickedit.base.zip
« Reply #2 on: February 20, 2018, 04:23:57 pm »
I want to add a new apptheme_profiles entry.
I put it in user.cfg.xml, but it doesn't work.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6128
  • Hero Points: 470
Re: Modifying stuff in com_slickedit.base.zip
« Reply #3 on: February 20, 2018, 04:30:17 pm »
The apptheme_profiles are not user configuration at all. There's a hard wired list in plugins\com_slickedit.base\sysconfig\options\options.xml. You are definitely in uncharted territory.

jporkkahtc

  • Senior Community Member
  • Posts: 2433
  • Hero Points: 202
  • Text
Re: Modifying stuff in com_slickedit.base.zip
« Reply #4 on: February 20, 2018, 06:09:58 pm »
OK, that works.

What I'm trying to do is create a theme that looks just like System does.
I've noticed that Slick in System theme has many problems when switching HDPI modes.
But when slick is in dark theme, it doesn't have any problem.

My laptop has an HDPI display, but my external monitors are not.
So when I plug/unplug my monitors I always have to restart Slick because it gets all messed up.

If I had a custom theme that looks just like "system", then it would probably fix this.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6128
  • Hero Points: 470
Re: Modifying stuff in com_slickedit.base.zip
« Reply #5 on: February 20, 2018, 06:12:40 pm »
Maybe you could modify System theme instead of trying to create a new one. Again though, you're in uncharted territory.

jporkkahtc

  • Senior Community Member
  • Posts: 2433
  • Hero Points: 202
  • Text
Re: Modifying stuff in com_slickedit.base.zip
« Reply #6 on: February 20, 2018, 10:14:41 pm »
Is that possible?
How?

I only see one theme defined, Dark - in apptheme_profiles.Dark.cfg.xml
The System theme appears to be built in and isn't in any configuration file that I've seen.



Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6128
  • Hero Points: 470
Re: Modifying stuff in com_slickedit.base.zip
« Reply #7 on: February 21, 2018, 03:50:23 am »
Sounds like pretty much nothing is possible in this area. Must be pretty hard wired.

jporkkahtc

  • Senior Community Member
  • Posts: 2433
  • Hero Points: 202
  • Text
Re: Modifying stuff in com_slickedit.base.zip
« Reply #8 on: February 21, 2018, 03:57:34 am »
Hm... Too bad, many things are not really settable in the theme.
Maybe 50/50 is hard wired vs. in the theme settings.
Many colors appear to be computed, so it is not possible to make a theme which mimics system.

It would be nice for the theme color settings to be more inclusive, make all the computed colors explicit in the theme.


Active button text (like in options) color is not in the theme - or it is computed?
List view stripes: Light is "Base", alternate is computed
Text for the selected item in a list view appears to be computed.
Same for menus, etc.

For testing purposes I made two themes.
(A) One set all colors to near black: 0x10101010
(B) And the other set all colors to near white: 0xf0f0f0f0
(C) And the other set all colors to near white: 0xffffff

When I select theme A, the Slick UI turns almost completely black - very little contrast, much as you would expect.
When I select theme B, the Slick UI looks *almost* like system - some things are weird, but it is mostly readable.
When I select theme C, the Slick UI much like "A", but now nearly complete white-out.

It should be mostly white, with very little contrast.
Seems like there is some complex code fiddling with the colors behind the scenes here, because when I set the various text colors to red, text did indeed show red - but with theme "B" all the text should be white, but in fact it was black.
This code appears very much "Dark" theme biased.

<options>
   <apptheme_profiles n="apptheme_profiles.ADark" version="1">
      <button v="0x10101010"/>
      <window v="0x10101010"/>
      <base v="0x10101010"/>
      <text v="0x10101010"/>
      <text_disabled v="0x10101010"/>
      <button_text v="0x10101010"/>
      <button_text_disabled v="0x10101010"/>
      <highlight v="0x10101010"/>
      <highlight_inactive v="0x10101010"/>
      <highlight_disabled v="0x10101010"/>
      <link v="0x10101010"/>
   </apptheme_profiles>
   <apptheme_profiles n="apptheme_profiles.BDark" version="1">
      <button v="0xf0f0f0f0"/>
      <window v="0xf0f0f0f0"/>
      <base v="0xf0f0f0f0"/>
      <text v="0xf0f0f0f0"/>
      <text_disabled v="0xf0f0f0f0"/>
      <button_text v="0xf0f0f0f0"/>
      <button_text_disabled v="0xf0f0f0f0"/>
      <highlight v="0xf0f0f0f0"/>
      <highlight_inactive v="0xf0f0f0f0"/>
      <highlight_disabled v="0xf0f0f0f0"/>
      <link v="0xf0f0f0f0"/>
   </apptheme_profiles>



"button": Applies to buttons and the menu bar, but shouldn't apply to both.
   Buttons
   Menu bar
   Listview header.
   Combobox drop arrow
   Modified for use as the window tab color
   Modified for use as the alternate color in striped lists.

"buttonText": Applies to menu bar, and dialog button text.

"text" Toolbar buttons.
   List view text.

"window"
   Dialog window background.
   Toobar background.

"base:
   Toolwindow background.
   listview backgrond.
   Edit control background.

"button_text"
   Menubar text
   Listview header text.
   2nd color in comobobox dropdown arrow.
   Dialog button text

"text_disabled"
   Disabled control text - not buttons, just dialog controls text.
   Disabled menu items.

"button_text_disabled"
   disabled button text.

"highlight"
   Mouseover menu item

"highlight_disabled"
   Mouseover disabled menu item

"highlight_inactive"
   Selected item in list, when list is inactive.

"link"
   Hot-text in dialogs (options only? in section header pages).