• Login
Community
  • Login

What is the cross-hatching for? (Style Configurator)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
24 Posts 5 Posters 6.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alan Kilborn
    last edited by Apr 10, 2020, 10:19 PM

    I’ve seen this before when I accidentally right-clicked instead of left-clicked on a color swatch box in the Style Configurator – does anyone know what the cross-hatching does? – I haven’t seen it have any kind of effect.

    To wit:

    f21c1cf8-6d9b-459b-ac4c-11d0f12253c7-image.png

    Versus:

    c7450a9e-5476-4e07-a428-abd1a7153e9e-image.png

    M 1 Reply Last reply Apr 11, 2020, 12:17 AM Reply Quote 1
    • M
      Michael Vincent @Alan Kilborn
      last edited by Apr 11, 2020, 12:17 AM

      @Alan-Kilborn

      I’m not sure, but I think it adds the colorStyle="1" to the style of the option you’re configuring. What does that mean?

      For an example, I use Obsidian as my default style which has a dark background. Let’s say I’m configuring some element of a user defined language or maybe just text option or whatever your image above is for. If I use the bottom image - the one without cross hatching I will see grey text on a yellow background on an otherwise dark grey background supplied from Obsidian. If instead I use your top picture, the one with cross-hatching I will see grey text on the Obsidian background. Looking in the userdefined language XML, I’ll also now see the colorStyle="1" for that element.

      So to me, it’s like kind of like cross-hatch means make the color transparent so the theme’s background color (whatever it may be) is the background for that “colour style”.

      Does that make sense?

      Cheers.

      E 1 Reply Last reply Apr 11, 2020, 11:07 AM Reply Quote 3
      • E
        Ekopalypse @Michael Vincent
        last edited by Apr 11, 2020, 11:07 AM

        Oh man, I should have known that sooner, then I could have saved myself some work.

        Thx @Alan-Kilborn @Michael-Vincent for bringing it up and discussing it.

        1 Reply Last reply Reply Quote 2
        • E
          Ekopalypse
          last edited by Apr 11, 2020, 11:11 AM

          By the way, I would say that this should be the standard for the UDL anyway.
          I mean, if you set colorStyle=“0” as default, UDL would work better with themes.

          A 1 Reply Last reply Apr 12, 2020, 1:03 PM Reply Quote 2
          • A
            Alan Kilborn @Ekopalypse
            last edited by Apr 12, 2020, 1:03 PM

            @Ekopalypse said in What is the cross-hatching for? (Style Configurator):

            if you set colorStyle=“0” as default, UDL would work better with themes.

            Did you mean to say:

            if you set colorStyle=“1” as default, UDL would work better with themes.

            Or am I fundamentally misunderstanding something? If that’s the case can you explain a bit more what you mean in this context?

            @Michael-Vincent and @Ekopalypse : Thanks for the replies.

            E 1 Reply Last reply Apr 12, 2020, 3:21 PM Reply Quote 1
            • A
              Alan Kilborn
              last edited by Alan Kilborn Apr 12, 2020, 3:01 PM Apr 12, 2020, 2:59 PM

              Interesting that I had not previously noticed this, posted 3 days ago: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2662#issuecomment-611458747

              @Michael-Vincent It even mentions the Obsidian theme. Maybe that is a popular one that I should check out.

              I liked the poster’s original comment (later edited out for some reason): Who would have thought of right clicking boxes, amirite?

              M 1 Reply Last reply Apr 12, 2020, 3:03 PM Reply Quote 0
              • M
                Michael Vincent @Alan Kilborn
                last edited by Apr 12, 2020, 3:03 PM

                @Alan-Kilborn said in What is the cross-hatching for? (Style Configurator):

                Obsidian theme. Maybe that is a popular one that I should check out.

                Many of the themes are woefully out of date as they have not been updated as sintilla lexer variables change. I have been updating my obsidian by hand since I use it so much. It’s a dark theme but not dark black background .

                Cheers.

                A 1 Reply Last reply Apr 12, 2020, 3:05 PM Reply Quote 1
                • A
                  Alan Kilborn @Michael Vincent
                  last edited by Apr 12, 2020, 3:05 PM

                  @Michael-Vincent said in What is the cross-hatching for? (Style Configurator):

                  Many of the themes are woefully out of date as they have not been updated as sintilla lexer variables change.

                  It seems like maybe we need “theme maintainers” much like there seems to be “language/translation maintainers” and “UDL maintainers”.

                  1 Reply Last reply Reply Quote 0
                  • E
                    Ekopalypse @Alan Kilborn
                    last edited by Apr 12, 2020, 3:21 PM

                    @Alan-Kilborn said in What is the cross-hatching for? (Style Configurator):

                    if you set colorStyle=“1” as default, UDL would work better with themes.

                    No, as far as I understand,
                    0 = default foreground and background
                    1 = default background
                    2 = default foreground

                    It seems like maybe we need “theme maintainers” much like there seems to be “language/translation maintainers” and “UDL maintainers”.

                    I thought about creating a python script based on the stylers.xml to
                    bring all themes to the same level but I’m unsure about the copyright stuff.

                    A P 2 Replies Last reply Apr 12, 2020, 3:42 PM Reply Quote 4
                    • A
                      Alan Kilborn @Ekopalypse
                      last edited by Apr 12, 2020, 3:42 PM

                      @Ekopalypse said in What is the cross-hatching for? (Style Configurator):

                      thought about creating a python script based on the stylers.xml to
                      bring all themes to the same level

                      I like that idea!

                      but I’m unsure about the copyright stuff.

                      What does this mean?

                      E 1 Reply Last reply Apr 12, 2020, 3:54 PM Reply Quote 1
                      • E
                        Ekopalypse @Alan Kilborn
                        last edited by Apr 12, 2020, 3:54 PM

                        @Alan-Kilborn

                        If you open the themes you will see that they have different licenses
                        and/or copyright statements or non at all.
                        What needs to be done if there is no license or copyright statement but an author stated?
                        What needs to be done on GPL2?

                        If one wants to bring all to the same level, all should have the same license, correct?

                        A 1 Reply Last reply Apr 12, 2020, 3:59 PM Reply Quote 1
                        • A
                          Alan Kilborn @Ekopalypse
                          last edited by Apr 12, 2020, 3:59 PM

                          @Ekopalypse

                          Well, you could always create the script anyway, and power-users could benefit by updating their individual copies of the theme files. It might be the thing that finally kicks me over the hump to stop using the default theme. :-)

                          But, yes, I guess I am not sure how to answer the licensing question.

                          1 Reply Last reply Reply Quote 3
                          • G
                            guy038
                            last edited by Apr 12, 2020, 4:08 PM

                            Hello, @michael-vincent, @ekopalypse, @alan-kilborn, and All,

                            @alan-kilborn said :

                            It might be the thing that finally kicks me over the hump to stop using the default theme. :-)

                            Me, too !

                            Best Regards

                            guy038

                            1 Reply Last reply Reply Quote 3
                            • E
                              Ekopalypse
                              last edited by Apr 12, 2020, 6:25 PM

                              Let me think about it.

                              1 Reply Last reply Reply Quote 2
                              • P
                                PeterJones @Ekopalypse
                                last edited by Apr 15, 2020, 4:00 PM

                                @Ekopalypse said in What is the cross-hatching for? (Style Configurator):

                                0 = default foreground and background
                                1 = default background
                                2 = default foreground

                                Thanks for that. I hadn’t known either about the right click or the colorStyle attribute values (neither was previously officially documented)

                                PR#81 for preferences docs include describing the right-click on the color box to get the same behavior.

                                Docs PR#82 includes describing that behavior in both the configuration files details and in the UDL (same attribute values in both).

                                P 1 Reply Last reply Apr 15, 2020, 4:03 PM Reply Quote 2
                                • P
                                  PeterJones @PeterJones
                                  last edited by Apr 15, 2020, 4:03 PM

                                  @PeterJones said in What is the cross-hatching for? (Style Configurator):

                                  and in the UDL

                                  And in case you didn’t know, my experiments show that the “inherit from default” for UDL inherits from the Style Configurator > … >Default Style colors, not from the UDL > Default Style: > Styler. I made sure to document that.

                                  And also found a bug in the UDL color box slash indicators .

                                  So this discussion prompted two PRs and a bug report so far. Thanks. :-)

                                  1 Reply Last reply Reply Quote 2
                                  • P
                                    PeterJones
                                    last edited by Apr 15, 2020, 4:04 PM

                                    Thanks for that.

                                    in case I wasn’t clear, thanks to everyone in this thread, who all contributed to the understanding.

                                    1 Reply Last reply Reply Quote 2
                                    • A
                                      Alan Kilborn
                                      last edited by Apr 15, 2020, 4:53 PM

                                      And there’s more to come yet:

                                      @Ekopalypse said:

                                      I thought about creating a python script based on the stylers.xml to
                                      bring all themes to the same level

                                      Hopeful cross-link?: https://community.notepad-plus-plus.org/post/52587

                                      1 Reply Last reply Reply Quote 1
                                      • G
                                        guy038
                                        last edited by Apr 16, 2020, 8:23 PM

                                        Hello @peterjones, @alan-kilborn, @ekopalypse, @michael-vincent, and All,

                                        I have not migrated to v7.8.6, yet. However, I noticed, since a very long time, the bug you mentioned, Peter, in the link below :

                                        https://github.com/notepad-plus-plus/npp-usermanual/pull/81#issuecomment-614183652

                                        To produce that issue, where both the background and foreground colors are available, where only one should be :

                                        • Start Notepad++ ( I did this test with the release v7.8.5 )

                                        • Run for instance, Settings > Style configurator

                                        • Verify that the Default ( stylers.xml) theme is selected

                                        • Select the Global Styles language

                                        • And select, for instance, the Mark Style 1 style

                                        • By default :

                                          • The foreground color is not available and its color is a light grey

                                          • The background color is available and its color is a light blue ( 0,255,255 )

                                        e69182b5-fda9-47d5-bf7d-92a233dd3b87-image.png

                                        • Now, switch from the Default ( stylers.xml) theme to the next Bespin theme

                                        • And switch back, immediately, to the Default ( stylers.xml) theme

                                        • Re-select the Mark Style 1 style

                                        • This time :

                                          • As before, the background color is available and its color is a light blue ( 0,255,255 )

                                          • But, the foreground color is, now, available and its color is a dark red ( 204,0,0 ) ??!!

                                        9c1cb232-22b7-4446-9840-6e3f529978c3-image.png

                                        Best regards,

                                        guy038

                                        P 1 Reply Last reply Apr 16, 2020, 8:37 PM Reply Quote 2
                                        • P
                                          PeterJones @guy038
                                          last edited by Apr 16, 2020, 8:37 PM

                                          @guy038 ,

                                          Weird. When I use my normal v7.8.5 portable, it never shows Global Styles > Mark 1 with greyed foreground. If I take a fresh v7.8.5 portable, it does start with Mark 1 greyed, and if I follow your path to Bespin and back, it gets ungreyed when I’m back in default sylers.xml.

                                          Weird.

                                          1 Reply Last reply Reply Quote 1
                                          2 out of 24
                                          • First post
                                            2/24
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors