1 /* ------------------------------------------------------------------------- */
3 /* GnmPane is the canvas we use for sheets. We store custom properties
4 here because there is no un-deprecated way to store them for the
5 canvas items which aren't widgets. */
7 -GnmPane-function-indicator-size: 10px;
8 -GnmPane-cell-comment-indicator-size: 6px;
9 -GnmPane-resize-guide-width: 1px;
10 -GnmPane-pane-resize-guide-width: 7px;
11 -GnmPane-control-circle-size: 5px;
12 -GnmPane-control-circle-outline: 1px;
15 /* ------------------------------------------------------------------------- */
16 /* The GnmItemGrid is the canvas area that holds all the cells. */
17 /* GnmPreviewGrid is the canvas used for auto-format previews. */
22 /* GnmItemGrid requires that the background be solid and rectangular
23 since we cheat and print only parts of it. */
24 background-image: none
;
25 background-color: white
;
31 GnmItemGrid:selected
{
32 background-color: lavender
;
35 /* Function markers are enabled from View->View Properties->Cell Markers */
36 GnmItemGrid function-marker
{
38 border-color: #555555;
39 /* See also GnmPane */
42 /* This is the divider between panes when an area is frozen. */
43 GnmItemGrid pane-divider
{
46 /* This isn't working well yet: */
51 /* ------------------------------------------------------------------------- */
52 /* The GnmItemCursor item is what marks a cell or selection on the sheet. */
54 /* The default cursor. */
55 GnmItemCursor
.normal
{
59 /* The anted cursor. We clearly should be using an animation, but neither
60 we nor gtk are ready for that. */
63 background-color: #c7c7c7;
66 /* The dragging/autofill cursor. These colors are combined in a stipple. */
68 GnmItemCursor
.autofill
{
70 background-color: black
;
73 /* ------------------------------------------------------------------------- */
77 /* See also GnmPane */
80 /* ------------------------------------------------------------------------- */
81 /* GnmItemEdit canvas items are the in-sheet editing area. */
84 background-color: #ffffe0;
86 /* This doens't seem to kick in. We seem to get the color from the
91 /* ------------------------------------------------------------------------- */
92 /* GnmItemBar canvas items are the header buttons "A".."IV" and "1".."65536" */
93 /* These are also styled with class button */
102 /* The whole column/row selected. */
108 /* Some, but not all, of a column/row selected. */
114 /* ------------------------------------------------------------------------- */
115 /* The resize guide used when resizing columns or rows. This can be
116 subclassed with "row" or "col" as well as with "start" or "end". */
117 GnmPane GocLine
.resize-guide
{
119 /* See also GnmPane */
122 /* The resize guide used when resizing panes. This can be subclassed with
124 GnmPane GocLine
.pane-resize-guide
{
126 /* See also GnmPane */
129 /* ------------------------------------------------------------------------- */
130 /* This GtkDrawingArea is the select-all button above the row buttons. */
132 GtkDrawingArea
.button
.all
{
135 /* ------------------------------------------------------------------------- */
137 /* GnmNotebook is a fake notebook holding just the sheet tabs area */
144 /* ------------------------------------------------------------------------- */
150 /* ------------------------------------------------------------------------- */
151 /* Add a little bit of space around our pseudo tooltips, but not so much as
152 to be a problem if the theme somehow adds its own. */
154 GtkWindow
>GtkFrame
.pseudo-tooltip
{
160 GtkWindow
>GtkFrame
>GtkLabel
.pseudo-tooltip
{
166 GtkWindow
*.pseudo-tooltip
{
167 background-image: none
;
168 background-color: rgba
(0,0,0,0);
171 GtkTextView
.pseudo-tooltip
{
175 /* ------------------------------------------------------------------------- */
176 /* This is used for the eight circles put around a sheet object being sized. */
179 background-color: white
;
181 /* See also GnmPane */
184 GnmControlCircle:hover
{
185 background-color: green
;
188 GocItem
.object-size
.rubber-band
{
192 /* ------------------------------------------------------------------------- */
193 /* Auto filter in two versions: the first one for "all", second for others. */
195 GtkArrow
.auto-filter
{
199 GtkArrow
.auto-filter:active
{
203 /* ------------------------------------------------------------------------- */
204 /* GnmNotebookButton is the sheet name buttons used to select sheets. */
206 GnmNotebookButton:active
{
210 /* ------------------------------------------------------------------------- */
211 /* Functions' arguments link-like appearance in pseudo-tooltips. */
213 GtkTextView
.pseudo-tooltip
.function-help
{
214 -GtkWidget-link-color: #4040ff;
217 /* Ditto in the function selector. */
218 GtkDialog GtkTextView
.function-help
{
219 -GtkWidget-link-color: #4040ff;
222 /* ------------------------------------------------------------------------- */
223 /* This is the vertical line used in the fixed-width part of the stf */
224 /* import dialog to show where a new column division will be placed */
226 GtkDialog#stf-import fixed-format-ruler
{
230 /* ------------------------------------------------------------------------- */
231 /* Extra space around multiple toolbars adds up quickly so avoid it. */
233 GtkBox
.toolbarzone GtkToolbar
{
236 GtkBox
.toolbarzone GtkToolbar
* {
240 /* ------------------------------------------------------------------------- */
241 /* Styles for Gtk+ 3.20 and later */
242 /* ------------------------------------------------------------------------- */
243 /* See bug 765921 as to why we duplicate the selectors. */
245 button
.itembar
, button
.itembar
* {
252 /* The whole column/row selected. */
253 button:active
.itembar
, button:active
.itembar
* {
258 /* Some, but not all, of a column/row selected. */
259 button:hover
.itembar
, button:hover
.itembar
* {
265 /* Small padding between and around toolbars, but not double between */
266 box
> box
> toolbar
{
271 box
> box:last-child
> toolbar
{
276 /* ------------------------------------------------------------------------- */