Bug 468435 - there's no visual effect in the tab if a TXT-document was edited but not saved
Summary: there's no visual effect in the tab if a TXT-document was edited but not saved
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 20:42 UTC by pierre-yves
Modified: 2023-04-14 14:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Modified doc shows a floppy icon (2.51 KB, image/png)
2023-04-12 20:47 UTC, Waqar Ahmed
Details
screenshot just after opening two documents (13.84 KB, image/jpeg)
2023-04-12 21:25 UTC, pierre-yves
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pierre-yves 2023-04-12 20:42:23 UTC
In the editor Geany, when a document was edited but not saved, then I can see a visual effect in the tab. I can configure it that way that the title has a special color or that the title is italic.

In the editor Kate there's no visual effect in the tab if document was edited but not saved.

Lubuntu 22.10, Kate 22.08.2
Comment 1 Waqar Ahmed 2023-04-12 20:46:03 UTC
Does the icon not change to a floppy?
Comment 2 Waqar Ahmed 2023-04-12 20:47:02 UTC
Created attachment 158047 [details]
Modified doc shows a floppy icon
Comment 3 pierre-yves 2023-04-12 21:04:18 UTC
In HTML-documents I can see when a document was edited and not saved, because when opening the document, there is a circle inside the floppy icon. If I edit the document, but not save it, then the floppy icon has no circle inside. If I save it, then there is again a circle inside the floppy icon.

But this is not the case with TXT-documents. When opening a TXT-document there is already no circle inside the floppy icon. If I save the edited document, then there is still no circle inside the flopy icon, so there's never a circle inside the floppy icon.
Comment 4 Waqar Ahmed 2023-04-12 21:07:56 UTC
Can you share screenshots? Since you are not in a KDE/Breeze environment, things might be looking different
Comment 5 pierre-yves 2023-04-12 21:10:40 UTC
I will change the title of this report from
"there's no visual effect in the tab if document was edited but not saved"
to
"there's no visual effect in the tab if a TXT-document was edited but not saved".
Comment 6 pierre-yves 2023-04-12 21:17:17 UTC
I will add a screenshot when opening a HTML-document and a TXT-document. After opening both documents I didn't edit both documents. You can see that the two floppy icons are different.
Comment 7 pierre-yves 2023-04-12 21:25:32 UTC
Created attachment 158048 [details]
screenshot just after opening two documents

It is a screenshot about when opening a HTML-document and a TXT-document. Although I didn't edit both documents, the floppy icon is different.
Comment 8 Waqar Ahmed 2023-04-12 21:40:34 UTC
I think there is no "modified" icon in the icon theme that you are using.

I would suggest installing a better icon theme such as the breeze-icon-theme, which will resolve this problem for you.
Comment 9 pierre-yves 2023-04-12 22:12:13 UTC
>I think there is no "modified" icon in the icon theme that you are using.

Well, I don't think so, because there is a "modified" icon for HTML-documents. If you were right, then there should be also no "modified" icon for HTML-documents.

>I would suggest installing a better icon theme such as the breeze-icon-theme, which will resolve this problem for you.

In Settings, in Configure Kate..., in Color Themes, in Default Themes, Breeze Light is selected.
Comment 10 Waqar Ahmed 2023-04-12 22:15:54 UTC
There is no modified icon for a particular type of document. There is just one that we use. It replaces any existing icon when the doc is modified. 

> Color Themes

Color theme is not Icon theme.
Comment 11 pierre-yves 2023-04-12 22:29:13 UTC
>Color theme is not Icon theme.

In Lubuntu, in the Preferences, in LXQt Settings, in Appearance, in Icons Theme, I tried different Icons Theme. The result is always the same. Either both have no icons or both have different icons.

< ... which will resolve this problem for you.

No, it doesn't.
Comment 12 Waqar Ahmed 2023-04-12 22:30:46 UTC
Did you try Breeze icon theme?
Comment 13 pierre-yves 2023-04-12 22:35:43 UTC
>Did you try Breeze icon theme?

Breeze icon theme does not exist.
Comment 14 Waqar Ahmed 2023-04-12 22:36:51 UTC
Then install it ¯\_(ツ)_/¯
Comment 15 pierre-yves 2023-04-12 22:53:44 UTC
sudo apt update
sudo apt install breeze-icon-theme

Then Breeze Icon Theme appears in the Icons Theme.

Now, indeed the icons are similar when they were edited, but not saved. But unfortunately the icons are very small. And unfortunately they are different when both documents are saved.
Just as feedback, even if maybe it is too complicated to solve:
Instead of an icon I would prefer something like font-style italic (when editing but not saved).

Thank you for your help.
Comment 16 pierre-yves 2023-04-14 13:53:58 UTC
The icons are too small. Is there a possibility to make the icons bigger?
Comment 17 Waqar Ahmed 2023-04-14 14:07:07 UTC
Can you try to install breeze Qt application style and test using that? Should be changeable in the settings, but I have never used lubuntu so not sure. Best ask Lubuntu guys about this.
Comment 18 pierre-yves 2023-04-14 14:33:43 UTC
>Can you try to install breeze Qt application style ..?

What is the command for that?
Comment 19 pierre-yves 2023-04-14 14:39:17 UTC
>Can you try to install breeze Qt application style and test using that?

Oh, do you mean not the Icons Theme but the Widget Style?
I use already Breeze in the Widget Style, in Qt Style.
In Appearance I can change the Font but not the size of the icons.