Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Enrico Forestieri

On Wed, Jul 05, 2023 at 08:42:21PM +0200, Pavel Sanda wrote:


I think your patch should go for windows port only as it would probably 
interfere with ppl choosing windows style under linux (yes, apparently 
there are users choosing this as I read users list).


I don't think this is a good idea because LyX would look different from 
any other application.


--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Beta 3 Tarballs

2023-07-05 Thread Pavel Sanda
On Fri, Jun 16, 2023 at 01:32:30PM +0200, Pavel Sanda wrote:
> On Wed, Jun 14, 2023 at 01:08:16AM -0400, Richard Kimberly Heck wrote:
> > PS Thanks for looking over the remaining bugs!
> 
> I finished my first pass now. Sorry for broken hearts as I ditched bunch of 
> 2.4
> milestones. The bad news is that I'll need to be even harsher in the next pass
> if we are ever going to release 2.4.0.
> 
> Riki, there is huge number of bugs you put onto your plate. I do not think
> it's realistic you solve most of them, but tended not to touch the bugs you
> milestoned for 2.4. It's up to you to decide whether it's too late for 2.4 
> now!

I think I'll do next pass through 2.4 milestoned bugs soon-ishto to do more 
harsh
milestone dropping so we can start approaching final beta/RCs.

Riki, do you plan to sort out bugs you put on your personal radar or should I 
kill the milestones on my own? :)

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Pavel Sanda
On Wed, Jul 05, 2023 at 09:58:24AM +0200, Stephan Witt wrote:
> > Actually Qt blog says that "their" preferred style on Windows is fusion 
> > ??\_(???)_/??.
> > 
> > So would that be something we want to set on all platforms? or only Windows?

I see only fusion and windows style options on debian without installing 
optional packages
(with fusion being default).

> IMO the Windows platform only patch.

+1

I think your patch should go for windows port only as it would probably 
interfere
with ppl choosing windows style under linux (yes, apparently there are users 
choosing
this as I read users list).

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Pavel Sanda
On Tue, Jul 04, 2023 at 10:46:45PM -0400, Richard Kimberly Heck wrote:
> On 7/4/23 09:41, Pavel Sanda wrote:
> >On Tue, Jul 04, 2023 at 10:55:14AM +0200, Yu Jin wrote:
> >>Am Di., 4. Juli 2023 um 10:40 Uhr schrieb Jürgen Spitzmüller:
> >>
> >>>Am Dienstag, dem 04.07.2023 um 10:33 +0200 schrieb Yu Jin:
> How do you switch on Linux/MacOS? Or does it just follow the system
> setting?
> >>>It follows the system settings unless you use a dark style via cl
> >>>switch.
> >On linux systems where desktop manager does not do it automatically, you
> >can use (in case of QT 5) qt5ct tool to set it up. E.g. you select fusion
> >style and "darker" (or any other you might like) color scheme.
> >
> >Then before running lyx you set the environment variable
> >QT_QPA_PLATFORMTHEME=qt5ct
> >and that should work (tested on oldstable debian).
> 
> Something like this might go into the release notes, and onto the wiki.

It's in the wiki already. P
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Daniel

On 2023-07-05 09:43, Yu Jin wrote:

Am Di., 4. Juli 2023 um 15:42 Uhr schrieb Pavel Sanda:

On Tue, Jul 04, 2023 at 10:55:14AM +0200, Yu Jin wrote:
 > Am Di., 4. Juli 2023 um 10:40 Uhr schrieb Jürgen Spitzmüller:
 >
 > > Am Dienstag, dem 04.07.2023 um 10:33 +0200 schrieb Yu Jin:
 > > > How do you switch on Linux/MacOS? Or does it just follow the
system
 > > > setting?
 > >
 > > It follows the system settings unless you use a dark style via cl
 > > switch.

On linux systems where desktop manager does not do it automatically, you
can use (in case of QT 5) qt5ct tool to set it up. E.g. you select
fusion
style and "darker" (or any other you might like) color scheme.

Then before running lyx you set the environment variable
QT_QPA_PLATFORMTHEME=qt5ct
and that should work (tested on oldstable debian).

 > What if we make "fusion" style default on windows then? That
would make
 > LyX's behavior the same as on Linux and MacOS.

Given that you are now the principal maintainer of the windows port
I think that's up to you to decide.

Advantage of fusion is that it will look the same across platform
disadvantage might be that it looks less native to windows than
other apps on your desktop?


Actually Qt blog says that "their" preferred style on Windows is fusion 
¯\_(ツ)_/¯.


So would that be something we want to set on all platforms? or only Windows?
I attached 2 patches accordingly, the style can be overwritten by the 
user through command line arguments as before.


Which one should I push?
--
   Eugene



IMO, the way to go is to have a setting in Preferences, User Interface 
that lets the user choose the style (which is then applied after a 
restart of LyX). A simple combobox that let's one choose between the 
styles which can be queried from QStyleFactory::keys().


This would be good to have on both Windows and macOS. Maybe the default 
should still be the default native style on both systems since it 
provides the most native look and feel? But one could then optionally 
choose the fusion style (among others).


On Windows, this would apparently offer dark mode support. On macOS, one 
could get around a buggy native style if wanted (e.g. remember the time 
when labels on tabs disappeared and the still blue lines between tabs 
with Qt 5). I am ignorant about Linux.


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Unicode characters in mathed

2023-07-05 Thread Jean-Marc Lasgouttes

Le 05/07/2023 à 13:39, Thibaut Cuvelier a écrit :
On Sat, 1 Apr 2023, 15:10 Jean-Marc Lasgouttes, > wrote:


Hello,

A relative has been using LyX recently, and it is interesting to see
how
the use is different from what I would do.

In particular, instead of typing \neq in mathed, why not copy and paste
a ≠ from some PDF or HTML page?

When doing this, two things happen :
1/ on screen, there is no spacing around the ≠
2/ in LaTeX output, the character is exported as \neq and all is well


This nice behaviour doesn't happen with all Unicode symbols. On my 
keyboard, I have direct access to ², ³, and µ: LyX wraps them in text 
boxes, meaning that the LaTeX output is wrong for these characters.


I cannot tell about ² and ³, but the upright µ is useful in text for 
units AFAIR.


We could indeed discuss a way to have a different behavior in texted and 
mathed.


JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Stephan Witt
Am 05.07.2023 um 09:43 schrieb Yu Jin :
> 
> Am Di., 4. Juli 2023 um 15:42 Uhr schrieb Pavel Sanda:
> On Tue, Jul 04, 2023 at 10:55:14AM +0200, Yu Jin wrote:
> > Am Di., 4. Juli 2023 um 10:40 Uhr schrieb Jürgen Spitzmüller:
> > 
> > > Am Dienstag, dem 04.07.2023 um 10:33 +0200 schrieb Yu Jin:
> > > > How do you switch on Linux/MacOS? Or does it just follow the system
> > > > setting?
> > >
> > > It follows the system settings unless you use a dark style via cl
> > > switch.
> 
> On linux systems where desktop manager does not do it automatically, you
> can use (in case of QT 5) qt5ct tool to set it up. E.g. you select fusion
> style and "darker" (or any other you might like) color scheme.
> 
> Then before running lyx you set the environment variable
> QT_QPA_PLATFORMTHEME=qt5ct
> and that should work (tested on oldstable debian).
> 
> > What if we make "fusion" style default on windows then? That would make
> > LyX's behavior the same as on Linux and MacOS.
> 
> Given that you are now the principal maintainer of the windows port
> I think that's up to you to decide.
> 
> Advantage of fusion is that it will look the same across platform
> disadvantage might be that it looks less native to windows than
> other apps on your desktop?
> 
> Actually Qt blog says that "their" preferred style on Windows is fusion 
> ¯\_(ツ)_/¯.
> 
> So would that be something we want to set on all platforms? or only Windows?
> I attached 2 patches accordingly, the style can be overwritten by the user 
> through command line arguments as before.
> 
> Which one should I push?

IMO the Windows platform only patch.

On macOS the command line is not an option for the „ordinary“ user. 
The change in style of e.g scrollbars gives LyX a strange feeling.

BR, Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Yu Jin
Am Di., 4. Juli 2023 um 15:42 Uhr schrieb Pavel Sanda:

> On Tue, Jul 04, 2023 at 10:55:14AM +0200, Yu Jin wrote:
> > Am Di., 4. Juli 2023 um 10:40 Uhr schrieb Jürgen Spitzmüller:
> >
> > > Am Dienstag, dem 04.07.2023 um 10:33 +0200 schrieb Yu Jin:
> > > > How do you switch on Linux/MacOS? Or does it just follow the system
> > > > setting?
> > >
> > > It follows the system settings unless you use a dark style via cl
> > > switch.
>
> On linux systems where desktop manager does not do it automatically, you
> can use (in case of QT 5) qt5ct tool to set it up. E.g. you select fusion
> style and "darker" (or any other you might like) color scheme.
>
> Then before running lyx you set the environment variable
> QT_QPA_PLATFORMTHEME=qt5ct
> and that should work (tested on oldstable debian).
>
> > What if we make "fusion" style default on windows then? That would make
> > LyX's behavior the same as on Linux and MacOS.
>
> Given that you are now the principal maintainer of the windows port
> I think that's up to you to decide.
>
> Advantage of fusion is that it will look the same across platform
> disadvantage might be that it looks less native to windows than
> other apps on your desktop?
>

Actually Qt blog says that "their" preferred style on Windows is fusion
¯\_(ツ)_/¯.

So would that be something we want to set on all platforms? or only Windows?
I attached 2 patches accordingly, the style can be overwritten by the user
through command line arguments as before.

Which one should I push?
-- 
  Eugene


0001-set-default-application-style-to-fusion-on-Windows.patch
Description: Binary data


0001-set-default-application-style-to-fusion.patch
Description: Binary data
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel