year-view: render DnD selector on hover

This commit adds the ability to render a DnD square
to give visual feedback for the hover operation.
This commit is contained in:
Georges Basile Stavracas Neto
2016-05-21 18:54:47 -03:00
parent c7d92e9f37
commit 44f5cbe607
3 changed files with 72 additions and 0 deletions
+5
View File
@@ -131,6 +131,11 @@ calendar-view.second-view-header {
border-radius: 2px;
}
.year-navigator.dnd {
border: solid 1px #4e9a06;
box-shadow: inset 0 0 0 1px #4e9a06;
}
.year-navigator.with-events {
background-color: @theme_fg_color;
border-radius: 3px;
+1
View File
@@ -24,6 +24,7 @@
<signal name="button-press-event" handler="navigator_button_press_cb" object="GcalYearView" swapped="yes"/>
<signal name="button-release-event" handler="navigator_button_release_cb" object="GcalYearView" swapped="yes"/>
<signal name="motion-notify-event" handler="navigator_motion_notify_cb" object="GcalYearView" swapped="yes"/>
<signal name="drag-motion" handler="navigator_drag_motion_cb" object="GcalYearView" swapped="yes"/>
<style>
<class name="year-navigator"/>
</style>