1 /* 2 * GridViewerStyles.java 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 16 package org.rstudio.core.client.widget; 17 18 import org.rstudio.core.client.theme.ThemeColors; 19 20 public class GridViewerStyles 21 { getCustomStyle()22 public static String getCustomStyle() 23 { 24 return 25 ".rstudio-themes-flat.rstudio-themes-default #rsGridData_info,\n" + 26 ".rstudio-themes-flat.rstudio-themes-default table.dataTable thead th,\n" + 27 ".rstudio-themes-flat.rstudio-themes-default table.dataTable thead td,\n" + 28 ".rstudio-themes-flat.rstudio-themes-default table.dataTable tbody td {\n" + 29 " border-color: " + ThemeColors.defaultBorder + ";\n" + 30 "}\n" + 31 "\n" + 32 ".rstudio-themes-flat.rstudio-themes-dark-grey #rsGridData_info,\n" + 33 ".rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead th,\n" + 34 ".rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead td,\n" + 35 ".rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable tbody td {\n" + 36 " border-color: " + ThemeColors.darkGreyBorder + ";\n" + 37 "}\n" + 38 "\n" + 39 ".rstudio-themes-flat.rstudio-themes-alternate #rsGridData_info,\n" + 40 ".rstudio-themes-flat.rstudio-themes-alternate table.dataTable thead th,\n" + 41 ".rstudio-themes-flat.rstudio-themes-alternate table.dataTable thead td,\n" + 42 ".rstudio-themes-flat.rstudio-themes-alternate table.dataTable tbody td {\n" + 43 " border-color: " + ThemeColors.alternateBorder + ";\n" + 44 "}\n" + 45 "\n" + 46 ".rstudio-themes-flat.rstudio-themes-default #rsGridData_info,\n" + 47 ".rstudio-themes-flat.rstudio-themes-default th,\n" + 48 ".rstudio-themes-flat.rstudio-themes-default td.first-child,\n" + 49 ".rstudio-themes-flat.rstudio-themes-default table.dataTable thead td {\n" + 50 " background-color: " + ThemeColors.defaultBackground + ";\n" + 51 "}\n" + 52 "\n" + 53 ".rstudio-themes-flat.rstudio-themes-dark-grey #rsGridData_info,\n" + 54 ".rstudio-themes-flat.rstudio-themes-dark-grey th,\n" + 55 ".rstudio-themes-flat.rstudio-themes-dark-grey td.first-child,\n" + 56 ".rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead th {\n" + 57 " background-color: " + ThemeColors.darkGreyBackground + ";\n" + 58 "}\n" + 59 "\n" + 60 ".rstudio-themes-flat.rstudio-themes-alternate #rsGridData_info,\n" + 61 ".rstudio-themes-flat.rstudio-themes-alternate th,\n" + 62 ".rstudio-themes-flat.rstudio-themes-alternate td.first-child,\n" + 63 ".rstudio-themes-flat.rstudio-themes-alternate table.dataTable thead th {\n" + 64 " background-color: " + ThemeColors.alternateBackground + ";\n" + 65 "}\n" + 66 "\n"; 67 } 68 } 69