baedert / corebird

Native Gtk+ Twitter Client
https://corebird.baedert.org
GNU General Public License v3.0
789 stars 79 forks source link

Ability to change font size of tweets #155

Open MatejLach opened 10 years ago

MatejLach commented 10 years ago

It would be really nice if one could change the font size of the tweets, without affecting the rest of the UI. Is this possible/planned? Thanks.

baedert commented 10 years ago

That's neither currently possible nor planned. Why do you want the tweets to have a different font size (and leave everything else unaffected)?

MatejLach commented 10 years ago

Sad to hear that it's not planned. I would like this, because when I am looking at the timeline from a distance, I just need the tweets themselves to be bigger, as I am not controlling the UI anyways. Also, some fonts require slightly different sizes to look good, compared to others.

The now inactive "Hotot" client had this feature, so a picture of its settings dialog may ilustrate it better: http://beginlinux.com/blog/wp-content/uploads/hotot11.jpg

Thanks for the great work.

nobeh commented 9 years ago

+1

One simple reason: I have weak eyes and do not by default use the scaling feature of my desktop. I'd rather configure different desktop apps on their font configurations on what best suites my eyes.

baedert commented 9 years ago

If you have weak eyes, wouldn't you want all other text (at least within the app) to be affected too?

And I'm assuming we're not only talking about the tweet text font size, but also author etc? I.e. all the text of a tweet row?

kanishkablack commented 9 years ago

+1

Yep tweet row would be perfect

mclaborn commented 8 years ago

I'd be happy if I could change the font size in the entire application. Is that possible?

For pidgin, I have the following in my .gtkrc-2.0 file. Would something similar work for CoreBird?

style "imhtml-large"
{
    font_name = "Verdana 14"
}
widget "*pidgin_conv_imhtml" style "imhtml-large"
baedert commented 8 years ago

Only in that one application, no. It will just pick up the font size you've configured (or not) desktop-wide.

kopr12 commented 8 years ago

Actually it can be done, but via patching Corebird :) @mclaborn, do note that the entire Corebird will be changed (where text is involved), I figured that's what you wanted. You can change the font name too, I've included that just in case, as well as font-weight. 24px might be too big, you might wanna play with that to suit your needs.

--- a/ui/style.css  2016-07-19 20:52:52.576826000 +0200
+++ b/ui/style.css  2016-07-19 20:54:55.605775934 +0200
@@ -1,5 +1,11 @@
 @define-color topbar_bg #333;

+ * {
+    font-size: 24px;
+   font-weight: bold;
+   font-family: "Signika", Georgia, Serif;
+    }
+
 .avatar-round {
   border: 1px solid grey;
   border-radius: 48px;
kdave commented 8 years ago

IMHO some level of configurability per-application is desired. The system-wide text settings do not usually apply to reading long texts, but eg. dialogs, "about box", menus etc.

From the beginning I found it very tiring to read the text, hard to just skim (because lots of twitter posts are, well, void of meaningful content) so tweaking the font to speed up reading would be really helpful.

From top of my head, applications that display longish texts to read also offer a way to set the fonts: browser, office programs, terminal emulators, GUI mail clients.

I understand that you might be unwilling to implement a feature for which you do not have use yourself, but there are users that do. I'll take the route of patching corebird for my own use based on the snippet in the previous comment.

starvald commented 8 years ago

Have this a font problem too, i have a 2nd monitor just big enough (800x600 in portrait mode) for conky and a twitter client but the fonts were too small in corebird. until i found this command: env GDK_SCALE=1.3 GDK_DPI_SCALE=1.3 CLUTTER_SCALE=1.3 corebird changed the scaling for just corebird, adjust the values to suit your screen.

kdave commented 8 years ago

@starvald awesome, thank you!

emanuk commented 8 years ago

@starvald Wow, thanks a bunch!!! Very useful.

jesscanady commented 7 years ago

FWIW: I would definitely want the ability to zoom the text on a timeline. I got bad eyes. System font size is reasonable, but I still occasionally have to lean-in to read a tweet.

billiebird commented 7 years ago

@kajzersoze Where and how would this patch be applied?

" --- a/ui/style.css 2016-07-19 20:52:52.576826000 +0200 +++ b/ui/style.css 2016-07-19 20:54:55.605775934 +0200 @@ -1,5 +1,11 @@ @define-color topbar_bg #333;

CoreBird is awesome and almost perfect except I am unable to read tweets from a distance and unable to adjust the font size.

The above command line (env GDK_SCALE=1.3 GDK_DPI_SCALE=1.3 CLUTTER_SCALE=1.3 corebird) works great if you want to try and remember the command every single time you want to start up CoreBird.

kopr12 commented 7 years ago

@billiebird Sorry for late reply, wasn't using Corebird for some time, decided to take a look again and can't believe how small fonts are and that this issue still exists, I certainly can't use it like that, anyway ... you need to compile it, if you're using Gentoo or Arch I can help you with the package, otherwise you would have to figure out how to compile it, if you manage to do that then it won't be a problem to patch it.

GrangeBeach commented 6 years ago

with the flatpak corebird 1.7.3 is there any way to increase font size ?

Vistaus commented 6 years ago

As issue https://github.com/baedert/corebird/issues/810 was closed can't this issue be closed as well then?

IBBoard commented 6 years ago

Presumably, if the main Corebird window was given its own ID (for CSS styling) then you'd be able to write specific custom rules for each part of the UI? I know I've done that kind of thing for Nautilus and other apps before.

ghost commented 6 years ago

If you want to change only "tweets" font size, you can use this:

$ cat ~/.config/gtk-3.0/gtk.css 
window > .vertical > stack > scrolledwindow > .frame > list > .tweet
{
    font-size: 18px;
}