From f9111fdcde0d3fe3931d2df2a18a8e98bf634b7f Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Mon, 17 Sep 2012 15:26:49 +0000 Subject: Style cursor handles - Add CSS rules to style the handles - Add SVG assets for the handles Signed-off-by: Manuel QuiƱones Acked-by: Simon Schampijer --- diff --git a/gtk3/theme/assets/Makefile.am b/gtk3/theme/assets/Makefile.am index 9691b72..52f78e1 100644 --- a/gtk3/theme/assets/Makefile.am +++ b/gtk3/theme/assets/Makefile.am @@ -8,7 +8,11 @@ assets = \ checkbox-unchecked.svg \ checkbox-unchecked-selected.svg \ checkbox-checked.svg \ - checkbox-checked-selected.svg + checkbox-checked-selected.svg \ + cursor-handle-insert.svg \ + cursor-handle-bottom.svg \ + cursor-handle-top.svg + sugar72dir = $(datadir)/themes/sugar-72/gtk-3.0/assets sugar100dir = $(datadir)/themes/sugar-100/gtk-3.0/assets diff --git a/gtk3/theme/assets/cursor-handle-bottom.svg b/gtk3/theme/assets/cursor-handle-bottom.svg new file mode 100644 index 0000000..cfb3a8c --- /dev/null +++ b/gtk3/theme/assets/cursor-handle-bottom.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/gtk3/theme/assets/cursor-handle-insert.svg b/gtk3/theme/assets/cursor-handle-insert.svg new file mode 100644 index 0000000..adc5b7a --- /dev/null +++ b/gtk3/theme/assets/cursor-handle-insert.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/gtk3/theme/assets/cursor-handle-top.svg b/gtk3/theme/assets/cursor-handle-top.svg new file mode 100644 index 0000000..b001306 --- /dev/null +++ b/gtk3/theme/assets/cursor-handle-top.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em index ba3c941..24a4c17 100644 --- a/gtk3/theme/gtk-widgets.css.em +++ b/gtk3/theme/gtk-widgets.css.em @@ -110,6 +110,9 @@ icon_large = icon_base * 5 -GtkCheckButton-indicator-size: $radio_size; -GtkCheckButton-indicator-spacing: 3; + + -GtkWidget-text-handle-width: 84px; + -GtkWidget-text-handle-height: 84px; } /* Backgrounds and windows */ @@ -685,4 +688,28 @@ GtkImage { SugarFrameWindow.background { background-color: @toolbar_grey; -} \ No newline at end of file +} + +/* Text cursor handles */ + +.cursor-handle.top, +.cursor-handle.bottom { + background-color: transparent; + box-shadow: none; + border-style: none; + border-image: none; + border-radius: 0px; + border-width: 0px; +} + +.cursor-handle.bottom { + background-image: url("assets/cursor-handle-bottom.svg"); +} + +.cursor-handle.top { + background-image: url("assets/cursor-handle-top.svg"); +} + +.cursor-handle.insert-cursor { + background-image: url("assets/cursor-handle-insert.svg"); +} -- cgit v0.9.1