@@ -1339,26 +1339,56 @@ popupGui <- function(dev){
1339
1339
#colMain <- '#FF5733' # A warm main color
1340
1340
#colBack <- '#2E86C1' # A contrasting background color
1341
1341
1342
- # Letter positions and colors
1343
- letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1344
- colors <- c(colMain, colMain, colMain, colMain, colMain, colMain,colBack)
1345
- cex_values <- c(7, 7, 7, 7, 7, 7, 6.5)
1346
- offset_values <- c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5)
1342
+ # # Letter positions and colors
1343
+ # letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1344
+ # colors <- c(colMain, colMain, colMain, colMain, colMain, colMain,colBack)
1345
+ # cex_values <- c(7, 7, 7, 7, 7, 7, 6.5)
1346
+ # offset_values <- c(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5)
1347
+
1348
+ # # Loop to create and position letters
1349
+ # for (i in 1:length(letters)) {
1350
+ # text(-0.65 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3, offset=offset_values[i])
1351
+ # }
1347
1352
1348
- # Loop to create and position letters
1349
- for (i in 1:length(letters)) {
1350
- text(-0.65 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3, offset=offset_values[i])
1351
- }
1353
+ # # # Add a decorative 'R' in a different color
1354
+ # # text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3, offset=0.4)
1352
1355
1353
- # Add a decorative 'R' in a different color
1354
- text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3, offset=0.4)
1356
+ # # # Other text elements (modify as needed)
1357
+ # # text(0, 0.01, 'Digestomics Analyzer', col=colMain, cex=2.5, font=1)
1358
+ # # text(0, -0.15, paste('version 1.0.0', pkgVar$version), col=colMain, font=3)
1359
+ # # text(0, -0.25, 'gp() - Generate New Proteome', col=colMain)
1360
+ # # text(0, -0.35, 'pm() - Process Mascot files', col=colMain)
1361
+ # text(0, -0.45, 'fo() - Open *.dcf files', col=colMain)
1362
+
1363
+ # Set up background color gradient with an even darker shade
1364
+ plot(0, 0, type='n', xlab='', ylab='', axes=FALSE)
1365
+ rect(-2, -2, 2, 2, col=rgb(0.05, 0.2, 0.4, alpha=0.9), border=NA) # Darker blue background
1355
1366
1356
- # Other text elements (modify as needed)
1357
- text(0, 0.08, 'Digestomics Analyzer', col=colMain, cex=2.5, font=1)
1358
- text(0, -0.15, paste('version 1.0.0', pkgVar$version), col=colMain, font=3)
1359
- text(0, -0.25, 'gp() - Generate New Proteome', col=colMain)
1360
- text(0, -0.35, 'pm() - Process Mascot files', col=colMain)
1361
- text(0, -0.45, 'fo() - Open *.dcf files', col=colMain)
1367
+ # Letter positions and modern color scheme
1368
+ letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1369
+ colors <- rep('#b4d0f3', 7)
1370
+ cex_values <- c(6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 6) # Slightly smaller 'R'
1371
+ offset_values <- c(0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.2)
1372
+
1373
+ # Add shadow effect to the letters for depth
1374
+ shadow_col <- '#00000050' # Semi-transparent black
1375
+ for (i in 1:length(letters)) {
1376
+ text(-0.75 + (i-1)*0.25 + 0.02, 0.2 - 0.02, letters[i], col=shadow_col, cex=cex_values[i], pos=3)
1377
+ text(-0.75 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3)
1378
+ }
1379
+
1380
+ # Decorative 'R' with shadow
1381
+ text(0.70 + 0.02, 0.2 - 0.02, 'R', col=shadow_col, cex=5.5, pos=3)
1382
+ text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3)
1383
+
1384
+ # Modern titles with a larger font
1385
+ text(0, 0.02, 'Digestomics Analyzer', col='#ffffff', cex=3, font=2)
1386
+ text(0, -0.15, paste('version 1.0.0', pkgVar$version), col='#b4d0f3', font=3)
1387
+
1388
+ # Clean, minimal function list with better spacing
1389
+ text(0, -0.25, 'gp() - Generate New Proteome', col='#ffffff', cex=1.2)
1390
+ text(0, -0.32, 'pm() - Process Mascot files', col='#ffffff', cex=1.2)
1391
+ text(0, -0.39, 'fo() - Open *.dcf files', col='#ffffff', cex=1.2)
1362
1392
1363
1393
# Force the graphics device to refresh
1364
1394
dev.flush()
0 commit comments