Giter VIP home page Giter VIP logo

Comments (19)

pintassilgo avatar pintassilgo commented on June 16, 2024

In the GTK build, menu simply isn't configurable, it follows system default or something like that.
image

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

Menu*** colors are used only on Windows version, I must write this into wiki, sorry.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

But wiki already mentions that:

Plus the following items, which colorize the main menu on Windows:

  • MenuFont: when "none", it falls back to TabFont
  • MenuFontHotkey: when "none", it falls back to MenuFont, then to TabFontMod
  • MenuFontDisabled: when "none", it falls back to TabBorderPassive
  • MenuBg: when "none", it falls back to TabBg
  • MenuSelBg: when "none", it falls back to TabOver

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

But Cuda is able to style Qt5 menu... The issue is:

  • It's using TabBg, whose name doesn't relate to menu.
  • Currently there's no way to change menu font color.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

TabBg is used for menu bg? it may be handled by Qt, maybe it uses the color of top UI element for the menu, which is tabs-color.

no way to change menu font color.

yes, it works only on Windows.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

Note that Cuda can change font menu color. It's only not exposed to users. Look at the last image of my first comment, the one displaying color palette. Menu font has different color compared to other images. I don't know why, but I guess this proves Cuda is able to change menu font.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

I do not see that Cud is able to change menu font. I changed theme colors 'top menu xxxxxxxxxxxxxx' to sample colors:

Screenshot from 2024-05-05 09-06-33

and none of them are applied. even if I call Font-color dialog.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

As I said, user changes aren't applied, users can't change menu font. But Cuda changes menu font by itself under some conditions. I will repeat two screenshots, compare the two and see the different font in each one.

image

image

Also... If Cuda is able to change menu background, and it clearly is (using TabBg), surely it can also change font somehow.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

When I call color-palette dlg, for me font-color changes to lite-gray and font becomes unreadable

Screenshot from 2024-05-05 09-26-57

I don't know what I can change here. TabBg is setting top ui color and maybe Qt is using that color..

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

for me font-color changes to lite-gray

Yes, that's what happens for me too, it changes from black to gray. I guess this proves once more Cuda is somehow able to change menu font color not only for Windows but also in Qt5 version. But it's not exposed for users to config, it's something hidden.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

It''s something hidden even for me as a programmer. I don't know how to change menu font color.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

The thing is: for Cuda Qt5, all dark themes make menu unreadable, because they turn menu background dark (through TabBg) but can't change menu text. Dark menu with black font... unreadable! Look at my first image in this issue to confirm.

This makes impossible for Cuda Qt5 users to use dark themes.

So I see two options:

  1. Try to discover how Cuda is able to change Qt5 menu, so that themes will work as expected.
  2. Make Cuda Qt5 to be the same as Gtk, in which menu is not theme'able, so at least dark themes won't make things unreadable. You can see Gtk screenshot in my second comment in this issue.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

offtopic, quick question:

attr(id, tag=0, x=0, y=0, len=1,
     color_font=COLOR_NONE, color_bg=COLOR_NONE, color_border=COLOR_NONE,
     font_bold=0, font_italic=0, font_strikeout=0,
     border_left=0, border_right=0, border_down=0, border_up=0,
     show_on_map=False, map_only=0 )

What about underline? Maybe font_underline? It's missing from API wiki.

image

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

What about underline? Maybe font_underline?

we have border_down for that.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

So is underline the same as border_down=1 (solid)?

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

underline the same as border_down=1

Yes

I guess I solved qt5-menu-bg-color. try new beta, same www folder.

i now force it to gray.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

The forced color should be the same as the one in release, which is the same used as background for tabs bar in default theme.

Cuda release, good:
image

Beta:
image

Not very important, but it would be good if you can keep the same color.

from cudatext.

Alexey-T avatar Alexey-T commented on June 16, 2024

Ok, improved: now that gray is used only when TabBg is 'dark'.

from cudatext.

pintassilgo avatar pintassilgo commented on June 16, 2024

Thanks.

from cudatext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.