@@ -1361,7 +1361,6 @@ popupGui <- function(dev){
1361
1361
# text(0, -0.45, 'fo() - Open *.dcf files', col=colMain)
1362
1362
1363
1363
# Set up background color gradient with an even darker shade
1364
- plot(0, 0, type='n', xlab='', ylab='', axes=FALSE)
1365
1364
rect(-2, -2, 2, 2, col=rgb(0.05, 0.2, 0.4, alpha=0.9), border=NA) # Darker blue background
1366
1365
1367
1366
# Letter positions and modern color scheme
@@ -1397,59 +1396,42 @@ popupGui <- function(dev){
1397
1396
##################################################################################
1398
1397
# New splashScreen to display when loading DigestR
1399
1398
1400
- # splashScreen1 <- function(){
1401
- # library(png)
1402
- # # Load the image and get its dimensions
1403
- # img_path <- system.file("extdata", "DigestRpicture.png", package = "digestR")
1404
- # img <- readPNG(img_path)
1405
- # plot(0, 0, type = 'n', xlab = '', ylab = '', axes = FALSE, xlim = c(-1.5, 1.5), ylim = c(-1.5, 1.5))
1406
- # # Display the image properly (full window)
1407
- # # rasterImage(img, -1.5, -1.5, 1.5, 1.5)
1408
-
1409
- # xlim <- c(-1.5, 1.5) # Adjust the x-axis limits as needed
1410
- # ylim <- c(-1.5, 1.5) # Adjust the y-axis limits as needed
1411
-
1412
- # # Create plot with no margins and appropriate limits
1413
- # par(mar=c(0,0,0,0), bg='#0d0d0d')
1414
- # plot(0, 0, type='n', xlab='', ylab='', axes=FALSE, xlim=xlim, ylim=ylim)
1415
-
1416
- # # Display the image, stretched to fit the plot region
1417
- # rasterImage(img, xlim[1], ylim[1], xlim[2], ylim[2])
1418
-
1419
- # # Letter positions and modern color scheme for "PANDAS"
1420
- # letters <- c('P', 'A', 'N', 'D', 'A', 'S')
1421
- # x_positions <- c(-0.9, -0.6, -0.3, 0.0, 0.3, 0.6) # Custom X positions for each letter
1422
- # y_positions <- c(0.62, 0.62, 0.62, 0.62, 0.62, 0.62) # Same Y position for all
1423
- # colors <- rep('#4da6ff', 6) # Light blue for all letters
1424
- # cex_values <- rep(5, 6) # Font size for letters
1425
-
1426
- # # Add shadow effect to the letters for depth
1427
- # shadow_col <- '#00000050' # Semi-transparent black shadow
1428
- # for (i in 1:length(letters)) {
1429
- # text(x_positions[i] + 0.02, y_positions[i] - 0.02, letters[i], col=shadow_col, cex=cex_values[i], pos=3)
1430
- # text(x_positions[i], y_positions[i], letters[i], col=colors[i], cex=cex_values[i], pos=3)
1431
- # }
1399
+ splashScreen1 <- function(){
1400
+ par(mar=c(0,0,0,0), bg='#0d0d0d') # Darker background color
1432
1401
1433
- # # Add black shadow for the title "Peptide Analyzer of Naturally Digested Amino acid Sequences"
1434
- # text(0, -0.4, 'Peptide Analyzer of', col='black', cex=1.80, font=2.3) # Black shadow
1435
- # text(0, -0.4, 'Peptide Analyzer of', col='#4da6ff', cex=1.8, font=2) # Main text
1436
-
1437
- # # Shadow for "Naturally Digested Amino acid Sequences"
1438
- # text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='black', cex=1.80, font=2.3) # Black shadow
1439
- # text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='#4da6ff', cex=1.8, font=2) # Main text
1440
-
1441
- # # Version and command text, shifted further downwards
1442
- # version <- '1.0.0'
1443
- # text(0, -0.75, paste('version', version), col = '#00b3b3', font = 2) # Dynamic color # Dynamic color
1444
-
1445
- # # Clean, minimal function list with better spacing and shifted downwards
1446
- # text(0, -0.86, 'gp() - Generate New Proteome', col='#00b3b3', cex=1.1, font = 2) # Light blue
1447
- # text(0, -0.94, 'pm() - Process Mascot files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1448
- # text(0, -1.02, 'fo() - Open *.dcf files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1402
+ # Set up background color gradient with an even darker shade
1403
+ plot(0, 0, type='n', xlab='', ylab='', axes=FALSE)
1404
+ rect(-2, -2, 2, 2, col=rgb(0.05, 0.2, 0.4, alpha=0.9), border=NA) # Darker blue background
1449
1405
1450
- # # Force the graphics device to refresh
1451
- # dev.flush()
1452
- # }
1406
+ # Letter positions and modern color scheme
1407
+ letters <- c('D', 'I', 'G', 'E', 'S', 'T', 'R')
1408
+ colors <- rep('#b4d0f3', 7)
1409
+ cex_values <- c(6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 6) # Slightly smaller 'R'
1410
+ offset_values <- c(0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.2)
1411
+
1412
+ # Add shadow effect to the letters for depth
1413
+ shadow_col <- '#00000050' # Semi-transparent black
1414
+ for (i in 1:length(letters)) {
1415
+ text(-0.75 + (i-1)*0.25 + 0.02, 0.2 - 0.02, letters[i], col=shadow_col, cex=cex_values[i], pos=3)
1416
+ text(-0.75 + (i-1)*0.25, 0.2, letters[i], col=colors[i], cex=cex_values[i], pos=3)
1417
+ }
1418
+
1419
+ # Decorative 'R' with shadow
1420
+ text(0.70 + 0.02, 0.2 - 0.02, 'R', col=shadow_col, cex=5.5, pos=3)
1421
+ text(0.70, 0.2, 'R', col='#E74C3C', cex=5.5, pos=3)
1422
+
1423
+ # Modern titles with a larger font
1424
+ text(0, 0.08, 'Digestomics Analyzer', col='#ffffff', cex=3, font=2)
1425
+ text(0, -0.15, paste('version 1.0.0', pkgVar$version), col='#b4d0f3', font=3)
1426
+
1427
+ # Clean, minimal function list with better spacing
1428
+ text(0, -0.25, 'gp() - Generate New Proteome', col='#ffffff', cex=1.2)
1429
+ text(0, -0.32, 'pm() - Process Mascot files', col='#ffffff', cex=1.2)
1430
+ text(0, -0.39, 'fo() - Open *.dcf files', col='#ffffff', cex=1.2)
1431
+
1432
+ # Force the graphics device to refresh
1433
+ dev.flush()
1434
+ }
1453
1435
1454
1436
##################################################################################
1455
1437
0 commit comments