Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Requests: Highlight "today" and Outlook-style "week" view #165

Open
mpreissner opened this issue Oct 17, 2024 · 6 comments
Open
Labels

Comments

@mpreissner
Copy link

Really love this card, and am currently using it to display a 2-week calendar (sunday-saturday). Would really love an option to highlight the "Today" entry. Yes, I know that marking the current day as "Today" is there already, but I'm talking about maybe changing the background color behind whichever day is "Today" so it's more easily visible across a room. Also, while I love the current display showing only the calendar events, I'm curious if we could also add an Outlook-style Week view that shows the full day's worth of hours so we can easily see the empty space/free time between the events and a line across the day representing the current time.

Thanks again for all your great work!

@nahvetti
Copy link

I have worked around your first problem with card mod. You can just add:
card_mod:
style: |
.day.today {
background: rgba(30, 230, 30, .15) !important;
}
to define separate background color for today.

image

Not optimal solution, but maybe something for you to try.

@whittssg
Copy link

whittssg commented Oct 22, 2024

@mpreissner It can be styled pretty easily, this is what i did with a bit of CSS:

chrome_TaXhbUUSSg

You just need to style .today .date and .today .events

I can post the CSS for what i did if needed.

@mpreissner
Copy link
Author

mpreissner commented Oct 22, 2024 via email

@whittssg
Copy link

whittssg commented Oct 22, 2024

@mpreissner

This is the code i used for the today highlight:

          .today .events {
          border-color: rgba(251, 140, 0, 0.5); !important;
          border-style: solid;
          border-bottom-left-radius: 4px;
          border-bottom-right-radius: 4px;
          border-width:1px;
          border-top-width:4px;
          padding-top: 6px;
          padding-left:4px;
          padding-right:4px;
          padding-bottom:0px;
          margin-top: 0px !important;
          }
          .today .date  {
          background-color: rgba(251, 140, 0, 0.8);
          padding-left: 10px;
          border-top-left-radius: 4px;
          border-top-right-radius: 4px;
          } 

Obviously you need to adjust to your tastes but that is the general idea.. I wanted to get a bright background to the today part and then a similar color around the events to encapsulate them

@FamousWolf
Copy link
Owner

As stated by others, highlighting today can be done using card_mod, so I'm not going to be adding an option for that.

I have no plans to add "an Outlook-style Week view that shows the full day's worth of hours" right now. It might be a nice 2.0 (which I'm not planning yet) feature, but for now it's too big a change. I will keep this issue open.

@mpreissner
Copy link
Author

mpreissner commented Oct 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants