Revisión | 0ff6b47fb881a30627195e5f5044b8b4179cd2bb (tree) |
---|---|
Tiempo | 2011-02-16 20:25:11 |
Autor | azyobuzin <azyobuzin@user...> |
Commiter | azyobuzin |
StatusesListViewの描画を元に戻した
@@ -114,16 +114,15 @@ namespace Azyobuzi.Twirunrun | ||
114 | 114 | |
115 | 115 | e.Graphics.InterpolationMode = InterpolationMode.High; |
116 | 116 | |
117 | - using (var b = (e.ItemState & ListViewItemStates.Selected) == ListViewItemStates.Selected ? | |
118 | - (Brush)new LinearGradientBrush(e.Bounds, Color.FromArgb(240, 250, 255), Color.FromArgb(170, 240, 255), LinearGradientMode.Vertical) | |
119 | - : (Brush)new SolidBrush(e.SubItem.BackColor)) | |
117 | + using (var b = new SolidBrush( | |
118 | + (e.ItemState & ListViewItemStates.Selected) == ListViewItemStates.Selected ? | |
119 | + SystemColors.Highlight : e.SubItem.BackColor)) | |
120 | 120 | { |
121 | 121 | e.Graphics.FillRectangle(b, e.Bounds); |
122 | 122 | } |
123 | 123 | |
124 | - //var foreColor = (e.ItemState & ListViewItemStates.Selected) == ListViewItemStates.Selected ? | |
125 | - // SystemColors.HighlightText : e.Item.ForeColor; | |
126 | - var foreColor = e.SubItem.ForeColor; | |
124 | + var foreColor = (e.ItemState & ListViewItemStates.Selected) == ListViewItemStates.Selected ? | |
125 | + SystemColors.HighlightText : e.Item.ForeColor; | |
127 | 126 | |
128 | 127 | e.ColumnIndex.SelectCase() |
129 | 128 | .Case(0, () =>//名前部 |