billthefarmer / diary

Android personal diary - forked from http://git.savannah.gnu.org/cgit/diary.git
https://billthefarmer.github.io/diary
GNU General Public License v3.0
276 stars 58 forks source link

The option of color for mode "reading". #102

Closed rendel470 closed 5 years ago

rendel470 commented 5 years ago

Your program is very good, but there is some color dissonance.

In settings there is "Theme/Dark"[or better DarkEd?] |Use dark theme for editing|

What do you say about "Theme/DarkRd"? |Use dark theme for reading|

billthefarmer commented 5 years ago

The markdown view is effectively a web page. You can have any theme you like using CSS or JavaScript.

rendel470 commented 5 years ago

Sorry, of course, but I don’t understand anything about writing program styles! (Therefore, I asked you about the color option in the program)

I do (mostly) physical work and I don't have time to learn web page styles. And even if I started to learn the styles of web pages, how do I apply them to the program? (To change in APK style.css and re-sign this APK?)

I just wanted a simple (IMHO) option for the "reading" mode. For reading ordinary diary texts. (With a dark background and light color of letters).

ghost commented 5 years ago

It's pretty simple to set a dark background and light text with CSS through the menu (Edit styles...):

html {
    color: #eeeeee;
    background-color: #333333;
}

a {
    color: #ccccff;
}

It's simple to switch back to dark on light too:

html {
    #color: #eeeeee;
    #background-color: #333333;
}

a {
    #color: #ccccff;
}

I will say that I don't usually go in here and do it unless I am going to use Diary for a longer while at night. It would be nice to have a button or checkbox to select my preferred colors but I'm not much inconvenienced by commenting out three lines of the style sheet to switch colors.

I do notice that when I switch entries by swiping left or right, the page flashes white before it draws the entry in the colors of the style sheet. This is a little unpleasant.

rendel470 commented 5 years ago

Thanks for your help, @citizen2947294. (although sometimes the style.css doesn't switch colors)

Does your screen blink when you swipe dates left/right? It’s strange. Only the flipping animation should blink and only in the light style of the "read" mode.