Ticket #4141: make_touch_handles_larger_to_improve_touch_hit_target_size.patch

File make_touch_handles_larger_to_improve_touch_hit_target_size.patch, 4.1 KB (added by garycmartin, 12 years ago)
  • gtk3/theme/assets/cursor-handle-bottom.svg

    From 52cba42b6ddc3dd674db9fef0c52bff94d2b62a2 Mon Sep 17 00:00:00 2001
    From: Gary Martin <gary@garycmartin.com>
    Date: Wed, 31 Oct 2012 20:30:40 +0000
    Subject: [PATCH] Increase size of text selection handles to improve touch
     target size - SL #4141
    
    ---
     gtk3/theme/assets/cursor-handle-bottom.svg |    6 +++---
     gtk3/theme/assets/cursor-handle-insert.svg |    6 +++---
     gtk3/theme/assets/cursor-handle-top.svg    |    6 +++---
     gtk3/theme/gtk-widgets.css.em              |    4 ++--
     4 files changed, 11 insertions(+), 11 deletions(-)
    
    diff --git a/gtk3/theme/assets/cursor-handle-bottom.svg b/gtk3/theme/assets/cursor-handle-bottom.svg
    index 645edc9..fe049e4 100644
    a b  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    3 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="55" height="55" viewBox="0, 0, 55, 55">
     3<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="110" height="110" viewBox="0, 0, 110, 110">
    44  <g id="Layer 1">
    55    <g>
    6       <path d="M48,22 L27,1 L27,46 L48,46 z" fill="#000000"/>
    7       <path d="M44,24 L31,11 L31,42 L44,42 z" fill="#FFFFFF"/>
     6      <path d="M83,29 L55,1 L55,60 L83,60 z" fill="#000000"/>
     7      <path d="M78,31 L60,13 L60,55 L78,55 z" fill="#FFFFFF"/>
    88    </g>
    99  </g>
    1010  <defs/>
  • gtk3/theme/assets/cursor-handle-insert.svg

    diff --git a/gtk3/theme/assets/cursor-handle-insert.svg b/gtk3/theme/assets/cursor-handle-insert.svg
    index 350fc61..1bcc86a 100644
    a b  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    3 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="55" height="55" viewBox="0, 0, 55, 55">
     3<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="110" height="110" viewBox="0, 0, 110, 110">
    44  <g id="Layer 1">
    55    <g>
    6       <path d="M12,16 L27,1 L42,16 L42,46 L12,46 z" fill="#000000"/>
    7       <path d="M16,18 L27,7 L38,18 L38,42 L16,42 z" fill="#FFFFFF"/>
     6      <path d="M37,19 L55,1 L73,19 L73,60 L37,60 z" fill="#000000"/>
     7      <path d="M42,21 L55,8 L68,21 L68,55 L42,55 z" fill="#FFFFFF"/>
    88    </g>
    99  </g>
    1010  <defs/>
  • gtk3/theme/assets/cursor-handle-top.svg

    diff --git a/gtk3/theme/assets/cursor-handle-top.svg b/gtk3/theme/assets/cursor-handle-top.svg
    index 19bfbf3..9d6bff2 100644
    a b  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    3 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="55" height="55" viewBox="0, 0, 55, 55">
     3<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="110" height="110" viewBox="0, 0, 110, 110">
    44  <g id="Layer 1">
    55    <g>
    6       <path d="M6,33 L27,54 L27,9 L6,9 z" fill="#000000"/>
    7       <path d="M10,31 L23,44 L23,13 L10,13 z" fill="#FFFFFF"/>
     6      <path d="M27,81 L55,109 L55,50 L27,50 z" fill="#000000"/>
     7      <path d="M32,79 L50,97 L50,55 L32,55 z" fill="#FFFFFF"/>
    88    </g>
    99  </g>
    1010  <defs/>
  • gtk3/theme/gtk-widgets.css.em

    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index 6758b95..eba4b2e 100644
    a b icon_large = icon_base * 5 
    115115    -GtkCheckButton-indicator-size: $radio_size;
    116116    -GtkCheckButton-indicator-spacing: 3;
    117117
    118     -GtkWidget-text-handle-width: 55px;
    119     -GtkWidget-text-handle-height: 55px;
     118    -GtkWidget-text-handle-width: 110px;
     119    -GtkWidget-text-handle-height: 110px;
    120120}
    121121
    122122/* Backgrounds and windows */